@Only-api
@Post
@Get
@Delete
@Condition
Feature: Graft Versus Host Desease resource actions
Description: This feature checks the patient resource actions, get, post and delete made on FHIR specific Condition node. This resource is part of the Stem Cell Transplantation.
File name: xav.feature
Relative path: api/xav.feature
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:22.146 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:22.779 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"602"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:22.779 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HTBsLLA4bIxW8SC1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16663/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16663/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:22.779 [print] {
"resourceType": "Condition",
"id": "16663",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:27.578+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:51:22.779 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:22.779 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"602"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:22.779 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HTBsLLA4bIxW8SC1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16663/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16663/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:22.779 [print] {
"resourceType": "Condition",
"id": "16663",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:27.578+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:51:22.779 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:23.385 [print] {
"resourceType": "Condition",
"id": "16663",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:27.578+02:00",
"source": "#HTBsLLA4bIxW8SC1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:23.971 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 17ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 17ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:25.580 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:51:28.774+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:51:28.774+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:25.580 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:26.160 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"614"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:26.160 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"H0b8sIwZUOdQZ7Wa"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16664/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16664/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:26.160 [print] {
"resourceType": "Condition",
"id": "16664",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:30.968+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:51:26.160 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:26.160 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"614"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:26.160 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"H0b8sIwZUOdQZ7Wa"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16664/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16664/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:26.160 [print] {
"resourceType": "Condition",
"id": "16664",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:30.968+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:51:26.160 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:27.762 [print] {
"resourceType": "Condition",
"id": "16664",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:30.968+02:00",
"source": "#H0b8sIwZUOdQZ7Wa",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:28.395 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:28.996 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:51:33.196+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:51:33.196+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:28.996 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:29.620 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"615"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:29.620 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"H0r1wsnHyeKssBMe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16665/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16665/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:29.620 [print] {
"resourceType": "Condition",
"id": "16665",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:34.421+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:51:29.620 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:29.620 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"615"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:29.620 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"H0r1wsnHyeKssBMe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16665/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16665/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:29.620 [print] {
"resourceType": "Condition",
"id": "16665",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:34.421+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:51:29.620 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:30.222 [print] {
"resourceType": "Condition",
"id": "16665",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:34.421+02:00",
"source": "#H0r1wsnHyeKssBMe",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:30.841 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:31.459 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:51:35.648+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:51:35.648+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:31.459 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:32.076 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:32.076 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hTX09KjDKWEvt574"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16666/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16666/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:32.076 [print] {
"resourceType": "Condition",
"id": "16666",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:36.877+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:51:32.076 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:32.076 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:32.076 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hTX09KjDKWEvt574"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16666/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16666/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:32.076 [print] {
"resourceType": "Condition",
"id": "16666",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:36.877+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:51:32.076 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:33.668 [print] {
"resourceType": "Condition",
"id": "16666",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:36.877+02:00",
"source": "#hTX09KjDKWEvt574",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:34.289 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:34.933 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:51:39.091+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:51:39.091+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:34.933 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:35.809 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:35.809 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"otjLNO8ticJlWvmn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16667/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16667/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:35.809 [print] {
"resourceType": "Condition",
"id": "16667",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:40.617+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:51:35.809 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:35.809 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:35.809 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"otjLNO8ticJlWvmn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16667/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16667/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:35.809 [print] {
"resourceType": "Condition",
"id": "16667",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:40.617+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:51:35.809 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:36.379 [print] {
"resourceType": "Condition",
"id": "16667",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:40.617+02:00",
"source": "#otjLNO8ticJlWvmn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:36.989 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:37.581 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:51:41.787+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:51:41.787+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:37.581 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:38.183 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:38.183 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"f5JDBUCzrVLfht2E"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16668/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16668/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:38.183 [print] {
"resourceType": "Condition",
"id": "16668",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:42.983+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:51:38.183 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:38.183 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:38.183 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"f5JDBUCzrVLfht2E"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16668/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16668/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:38.183 [print] {
"resourceType": "Condition",
"id": "16668",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:42.983+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:51:38.183 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:39.242 [print] {
"resourceType": "Condition",
"id": "16668",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:42.983+02:00",
"source": "#f5JDBUCzrVLfht2E",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:39.845 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:40.430 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:51:44.654+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:51:44.654+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:40.430 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:41.067 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:41.067 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dXS4esQsK41GrL0p"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16669/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16669/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:41.067 [print] {
"resourceType": "Condition",
"id": "16669",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:45.851+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:51:41.067 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:41.067 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:41.067 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dXS4esQsK41GrL0p"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16669/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16669/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:41.067 [print] {
"resourceType": "Condition",
"id": "16669",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:45.851+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:51:41.067 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:41.993 [print] {
"resourceType": "Condition",
"id": "16669",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:45.851+02:00",
"source": "#dXS4esQsK41GrL0p",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:42.629 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:43.234 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:51:47.437+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:51:47.437+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:43.234 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:43.913 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:43.913 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BU0U5XHi8iYYbfeY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16670/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16670/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:43.913 [print] {
"resourceType": "Condition",
"id": "16670",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:48.723+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:51:43.913 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:43.913 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:43.913 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BU0U5XHi8iYYbfeY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16670/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16670/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:43.913 [print] {
"resourceType": "Condition",
"id": "16670",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:48.723+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:51:43.913 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:44.483 [print] {
"resourceType": "Condition",
"id": "16670",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:48.723+02:00",
"source": "#BU0U5XHi8iYYbfeY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:45.100 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:45.728 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:51:49.899+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:51:49.899+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:45.728 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:46.299 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:46.299 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nAdcCeKLol1PpfdI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16671/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16671/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:46.299 [print] {
"resourceType": "Condition",
"id": "16671",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:51.112+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:51:46.299 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:46.299 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:46.299 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nAdcCeKLol1PpfdI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16671/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16671/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:46.299 [print] {
"resourceType": "Condition",
"id": "16671",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:51.112+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:51:46.299 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:46.920 [print] {
"resourceType": "Condition",
"id": "16671",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:51.112+02:00",
"source": "#nAdcCeKLol1PpfdI",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:47.538 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:48.328 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:51:52.338+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:51:52.338+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:48.328 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:48.960 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:48.960 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1fxFNo0euaVyweKx"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16672/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16672/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:48.960 [print] {
"resourceType": "Condition",
"id": "16672",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:53.764+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:51:48.960 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:48.976 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:48.976 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1fxFNo0euaVyweKx"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16672/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16672/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:48.976 [print] {
"resourceType": "Condition",
"id": "16672",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:53.764+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:51:48.976 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:49.593 [print] {
"resourceType": "Condition",
"id": "16672",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:53.764+02:00",
"source": "#1fxFNo0euaVyweKx",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:50.194 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:50.795 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:51:54.998+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:51:54.998+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:50.795 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:51.418 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:51.418 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MklrEZhP8AZioFfK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16673/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16673/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:51.418 [print] {
"resourceType": "Condition",
"id": "16673",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:56.225+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:51:51.418 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:51.418 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:51.418 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MklrEZhP8AZioFfK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16673/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16673/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:51.418 [print] {
"resourceType": "Condition",
"id": "16673",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:56.225+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:51:51.418 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:52.038 [print] {
"resourceType": "Condition",
"id": "16673",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:56.225+02:00",
"source": "#MklrEZhP8AZioFfK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:52.686 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:53.310 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:51:57.477+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:51:57.477+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:53.325 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:53.889 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:53.889 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"R7l3i7EymGJALRiY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16674/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16674/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:53.889 [print] {
"resourceType": "Condition",
"id": "16674",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:58.707+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:51:53.889 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:53.889 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:53.889 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"R7l3i7EymGJALRiY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16674/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:51:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16674/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:51:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:53.889 [print] {
"resourceType": "Condition",
"id": "16674",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:58.707+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:51:53.889 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:54.560 [print] {
"resourceType": "Condition",
"id": "16674",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:51:58.707+02:00",
"source": "#R7l3i7EymGJALRiY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:55.193 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:55.815 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:51:59.997+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:51:59.997+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:55.815 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:56.395 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:56.395 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Er3DrwgoVfvync3H"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16675/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16675/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:56.395 [print] {
"resourceType": "Condition",
"id": "16675",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:01.203+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:51:56.395 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:56.395 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:56.395 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Er3DrwgoVfvync3H"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16675/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16675/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:56.395 [print] {
"resourceType": "Condition",
"id": "16675",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:01.203+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:51:56.395 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:56.966 [print] {
"resourceType": "Condition",
"id": "16675",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:01.203+02:00",
"source": "#Er3DrwgoVfvync3H",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:51:57.568 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:51:58.173 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:02.385+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:02.385+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:51:58.173 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:58.810 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:58.810 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qFrqBOlpTkDAmToG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16676/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16676/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:58.810 [print] {
"resourceType": "Condition",
"id": "16676",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:03.603+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:51:58.810 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:51:58.810 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:51:58.810 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qFrqBOlpTkDAmToG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16676/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16676/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:51:58.810 [print] {
"resourceType": "Condition",
"id": "16676",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:03.603+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:51:58.810 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:51:59.395 [print] {
"resourceType": "Condition",
"id": "16676",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:03.603+02:00",
"source": "#qFrqBOlpTkDAmToG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:00.041 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 15ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 15ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:00.658 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:04.835+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:04.835+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:00.658 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:01.222 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:01.222 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xsUjdQpFKXHivgGJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16677/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16677/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:01.222 [print] {
"resourceType": "Condition",
"id": "16677",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:06.036+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:52:01.222 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:01.222 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:01.222 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xsUjdQpFKXHivgGJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16677/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16677/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:01.222 [print] {
"resourceType": "Condition",
"id": "16677",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:06.036+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:52:01.222 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:02.114 [print] {
"resourceType": "Condition",
"id": "16677",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:06.036+02:00",
"source": "#xsUjdQpFKXHivgGJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:02.734 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:03.341 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:07.547+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:07.547+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:03.341 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:03.945 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:03.945 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"thKjSt7ky9SACeC9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16678/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16678/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:03.945 [print] {
"resourceType": "Condition",
"id": "16678",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:08.734+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:52:03.945 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:03.945 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:03.945 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"thKjSt7ky9SACeC9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16678/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16678/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:03.945 [print] {
"resourceType": "Condition",
"id": "16678",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:08.734+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:52:03.945 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:04.576 [print] {
"resourceType": "Condition",
"id": "16678",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:08.734+02:00",
"source": "#thKjSt7ky9SACeC9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:05.215 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:05.805 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:10.022+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:10.022+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:05.805 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:06.387 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:06.387 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BclofI54tE8x0DZ9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16679/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16679/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:06.387 [print] {
"resourceType": "Condition",
"id": "16679",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:11.189+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:52:06.387 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:06.387 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:06.387 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BclofI54tE8x0DZ9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16679/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16679/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:06.387 [print] {
"resourceType": "Condition",
"id": "16679",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:11.189+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:52:06.387 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:06.994 [print] {
"resourceType": "Condition",
"id": "16679",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:11.189+02:00",
"source": "#BclofI54tE8x0DZ9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:07.617 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:08.235 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:12.426+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:12.426+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:08.235 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:08.825 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:08.825 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"r8wYUfuePGvLKT3n"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16680/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16680/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:08.825 [print] {
"resourceType": "Condition",
"id": "16680",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:13.629+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:52:08.825 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:08.825 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:08.825 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"r8wYUfuePGvLKT3n"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16680/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16680/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:08.825 [print] {
"resourceType": "Condition",
"id": "16680",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:13.629+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:52:08.825 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:09.389 [print] {
"resourceType": "Condition",
"id": "16680",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:13.629+02:00",
"source": "#r8wYUfuePGvLKT3n",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:10.006 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:10.613 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:14.811+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:14.811+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:10.613 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:11.215 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:11.215 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CzVGokHxkx7XnKs8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16681/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16681/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:11.215 [print] {
"resourceType": "Condition",
"id": "16681",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:16.011+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:52:11.215 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:11.215 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:11.215 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CzVGokHxkx7XnKs8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16681/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16681/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:11.215 [print] {
"resourceType": "Condition",
"id": "16681",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:16.011+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:52:11.215 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:11.794 [print] {
"resourceType": "Condition",
"id": "16681",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:16.011+02:00",
"source": "#CzVGokHxkx7XnKs8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:12.449 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:13.098 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:17.245+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:17.245+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:13.098 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:13.683 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:13.683 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"23bYCfiRBy48UoGX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16682/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16682/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:13.683 [print] {
"resourceType": "Condition",
"id": "16682",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:18.477+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:52:13.683 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:13.683 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:13.683 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"23bYCfiRBy48UoGX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16682/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16682/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:13.683 [print] {
"resourceType": "Condition",
"id": "16682",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:18.477+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:52:13.683 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:14.289 [print] {
"resourceType": "Condition",
"id": "16682",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:18.477+02:00",
"source": "#23bYCfiRBy48UoGX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:14.907 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:15.551 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:19.709+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:19.709+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:15.551 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:16.150 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:16.150 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Rbs7kwTA8O1xRUXM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16683/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16683/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:16.150 [print] {
"resourceType": "Condition",
"id": "16683",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:20.941+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:52:16.150 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:16.150 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:16.150 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Rbs7kwTA8O1xRUXM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16683/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16683/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:16.150 [print] {
"resourceType": "Condition",
"id": "16683",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:20.941+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:52:16.150 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:16.745 [print] {
"resourceType": "Condition",
"id": "16683",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:20.941+02:00",
"source": "#Rbs7kwTA8O1xRUXM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:17.351 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:17.933 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:22.155+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:22.155+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:17.934 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:18.527 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:18.527 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KA7tEXZb6cSQpSJM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16684/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16684/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:18.527 [print] {
"resourceType": "Condition",
"id": "16684",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:23.325+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:52:18.527 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:18.528 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:18.528 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KA7tEXZb6cSQpSJM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16684/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16684/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:18.528 [print] {
"resourceType": "Condition",
"id": "16684",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:23.325+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:52:18.529 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:19.143 [print] {
"resourceType": "Condition",
"id": "16684",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:23.325+02:00",
"source": "#KA7tEXZb6cSQpSJM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:19.751 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:20.317 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:24.555+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:24.555+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:20.318 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:20.948 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:20.948 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"z3YhJiGdfws74GHp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16685/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16685/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:20.948 [print] {
"resourceType": "Condition",
"id": "16685",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:25.752+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:52:20.948 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:20.949 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:20.949 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"z3YhJiGdfws74GHp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16685/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16685/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:20.949 [print] {
"resourceType": "Condition",
"id": "16685",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:25.752+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:52:20.949 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:21.544 [print] {
"resourceType": "Condition",
"id": "16685",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:25.752+02:00",
"source": "#z3YhJiGdfws74GHp",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:22.115 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:22.701 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:26.920+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:26.920+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:22.701 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:23.287 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:23.287 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JTZGSKbdIVsNBlbi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16686/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16686/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:23.287 [print] {
"resourceType": "Condition",
"id": "16686",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:28.087+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:52:23.287 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:23.287 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:23.287 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JTZGSKbdIVsNBlbi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16686/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16686/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:23.287 [print] {
"resourceType": "Condition",
"id": "16686",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:28.087+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:52:23.287 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:23.905 [print] {
"resourceType": "Condition",
"id": "16686",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:28.087+02:00",
"source": "#JTZGSKbdIVsNBlbi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:24.542 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:25.126 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:29.343+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:29.343+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:25.127 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:25.707 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:25.707 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"k1Yhfwdwirw6hbKi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16687/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16687/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:25.707 [print] {
"resourceType": "Condition",
"id": "16687",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:30.499+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:52:25.707 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:25.708 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:25.708 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"k1Yhfwdwirw6hbKi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16687/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16687/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:25.708 [print] {
"resourceType": "Condition",
"id": "16687",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:30.499+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:52:25.708 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:26.296 [print] {
"resourceType": "Condition",
"id": "16687",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:30.499+02:00",
"source": "#k1Yhfwdwirw6hbKi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:27.222 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:27.850 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:32.025+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:32.025+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:27.850 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:28.466 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:28.466 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0yQh1jFqtx96LpVc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16688/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16688/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:28.466 [print] {
"resourceType": "Condition",
"id": "16688",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:33.249+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:52:28.466 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:28.466 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:28.466 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0yQh1jFqtx96LpVc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16688/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16688/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:28.466 [print] {
"resourceType": "Condition",
"id": "16688",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:33.249+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:52:28.466 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:30.093 [print] {
"resourceType": "Condition",
"id": "16688",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:33.249+02:00",
"source": "#0yQh1jFqtx96LpVc",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:30.726 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 19ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 19ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:31.343 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:35.527+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:35.527+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:31.358 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:32.977 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:32.977 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0YjgVwU6aTTkQ8T3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16689/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16689/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:32.977 [print] {
"resourceType": "Condition",
"id": "16689",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:37.788+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:52:32.977 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:32.977 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:32.977 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0YjgVwU6aTTkQ8T3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16689/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16689/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:32.992 [print] {
"resourceType": "Condition",
"id": "16689",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:37.788+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:52:32.992 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:33.652 [print] {
"resourceType": "Condition",
"id": "16689",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:37.788+02:00",
"source": "#0YjgVwU6aTTkQ8T3",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:34.827 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:35.444 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:39.636+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:39.636+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:35.444 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:36.075 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:36.075 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4UTbzXymzEPhI9DU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16690/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16690/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:36.075 [print] {
"resourceType": "Condition",
"id": "16690",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:40.877+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:52:36.075 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:36.075 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:36.075 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4UTbzXymzEPhI9DU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16690/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16690/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:36.075 [print] {
"resourceType": "Condition",
"id": "16690",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:40.877+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:52:36.075 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:36.844 [print] {
"resourceType": "Condition",
"id": "16690",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:40.877+02:00",
"source": "#4UTbzXymzEPhI9DU",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:37.455 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:38.178 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:42.244+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:42.244+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:38.178 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:38.771 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:38.771 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3mKHGNn7rjqjCR95"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16691/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16691/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:38.771 [print] {
"resourceType": "Condition",
"id": "16691",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:43.569+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:52:38.771 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:38.772 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:38.772 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3mKHGNn7rjqjCR95"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16691/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16691/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:38.773 [print] {
"resourceType": "Condition",
"id": "16691",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:43.569+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:52:38.773 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:39.369 [print] {
"resourceType": "Condition",
"id": "16691",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:43.569+02:00",
"source": "#3mKHGNn7rjqjCR95",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:39.974 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:40.612 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:44.789+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:44.789+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:40.627 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:41.211 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:41.211 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3IJiMvAJAOFcvWZt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16692/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16692/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:41.211 [print] {
"resourceType": "Condition",
"id": "16692",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:46.015+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:52:41.211 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:41.211 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:41.211 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3IJiMvAJAOFcvWZt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16692/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16692/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:41.211 [print] {
"resourceType": "Condition",
"id": "16692",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:46.015+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:52:41.211 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:42.778 [print] {
"resourceType": "Condition",
"id": "16692",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:46.015+02:00",
"source": "#3IJiMvAJAOFcvWZt",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:44.417 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:44.991 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:49.214+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:49.214+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:44.991 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:45.594 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:45.594 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rdb2WutMtzgWLElE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16693/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16693/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:45.594 [print] {
"resourceType": "Condition",
"id": "16693",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:50.401+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:52:45.594 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:45.594 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:45.594 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rdb2WutMtzgWLElE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16693/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16693/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:45.594 [print] {
"resourceType": "Condition",
"id": "16693",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:50.401+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:52:45.594 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:46.238 [print] {
"resourceType": "Condition",
"id": "16693",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:50.401+02:00",
"source": "#rdb2WutMtzgWLElE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:46.819 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:47.405 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:51.622+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:51.622+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:47.405 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:48.006 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:48.006 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0JERNnb6tWKMwUZ1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16694/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16694/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:48.006 [print] {
"resourceType": "Condition",
"id": "16694",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:52.812+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:52:48.006 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:48.006 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:48.006 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0JERNnb6tWKMwUZ1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16694/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16694/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:48.006 [print] {
"resourceType": "Condition",
"id": "16694",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:52.812+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:52:48.006 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:48.593 [print] {
"resourceType": "Condition",
"id": "16694",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:52.812+02:00",
"source": "#0JERNnb6tWKMwUZ1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:49.241 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:50.262 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:54.048+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:54.048+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:50.263 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:50.837 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:50.837 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UBZJhPFl6ts5fzd0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16695/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16695/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:50.837 [print] {
"resourceType": "Condition",
"id": "16695",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:55.639+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:52:50.837 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:50.839 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:50.839 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UBZJhPFl6ts5fzd0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16695/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16695/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:50.839 [print] {
"resourceType": "Condition",
"id": "16695",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:55.639+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:52:50.839 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:51.469 [print] {
"resourceType": "Condition",
"id": "16695",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:55.639+02:00",
"source": "#UBZJhPFl6ts5fzd0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:52.270 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:52.900 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:57.074+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:57.074+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:52.902 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:53.502 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:53.502 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rc8RQd0nQQSuxVFW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16696/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16696/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:53.503 [print] {
"resourceType": "Condition",
"id": "16696",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:58.304+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:52:53.503 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:53.504 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:53.504 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rc8RQd0nQQSuxVFW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16696/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:52:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16696/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:52:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:53.504 [print] {
"resourceType": "Condition",
"id": "16696",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:58.304+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:52:53.504 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:54.072 [print] {
"resourceType": "Condition",
"id": "16696",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:52:58.304+02:00",
"source": "#rc8RQd0nQQSuxVFW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:54.714 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:55.317 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:52:59.497+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:52:59.497+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:55.317 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:55.897 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:55.897 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"60m53sUJIx6649xB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16697/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16697/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:55.897 [print] {
"resourceType": "Condition",
"id": "16697",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:00.700+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:52:55.897 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:55.897 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:55.897 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"60m53sUJIx6649xB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16697/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16697/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:55.897 [print] {
"resourceType": "Condition",
"id": "16697",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:00.700+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:52:55.897 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:56.514 [print] {
"resourceType": "Condition",
"id": "16697",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:00.700+02:00",
"source": "#60m53sUJIx6649xB",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:57.489 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:58.110 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:02.278+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:02.278+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:52:58.110 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:58.743 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:58.743 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8ATlZtp7bsdpkCI8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16698/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16698/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:58.743 [print] {
"resourceType": "Condition",
"id": "16698",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:03.547+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:52:58.743 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:58.743 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:58.743 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8ATlZtp7bsdpkCI8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16698/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16698/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:58.743 [print] {
"resourceType": "Condition",
"id": "16698",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:03.547+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:52:58.743 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:59.682 [print] {
"resourceType": "Condition",
"id": "16698",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:03.547+02:00",
"source": "#8ATlZtp7bsdpkCI8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:00.277 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:00.887 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:05.081+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:05.081+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:00.887 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:01.540 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:01.540 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"sXtjkkaHUultqVyB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16699/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16699/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:01.540 [print] {
"resourceType": "Condition",
"id": "16699",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:06.340+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:53:01.540 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:01.540 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:01.540 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"sXtjkkaHUultqVyB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16699/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16699/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:01.540 [print] {
"resourceType": "Condition",
"id": "16699",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:06.340+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:53:01.540 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:02.142 [print] {
"resourceType": "Condition",
"id": "16699",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:06.340+02:00",
"source": "#sXtjkkaHUultqVyB",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:02.712 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:03.297 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:07.529+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:07.529+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:03.297 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:03.955 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:03.955 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aePGiyrDgnMnMmMm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16700/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16700/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:03.955 [print] {
"resourceType": "Condition",
"id": "16700",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:08.756+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:03.955 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:03.955 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:03.955 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aePGiyrDgnMnMmMm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16700/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16700/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:03.955 [print] {
"resourceType": "Condition",
"id": "16700",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:08.756+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:03.955 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:04.563 [print] {
"resourceType": "Condition",
"id": "16700",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:08.756+02:00",
"source": "#aePGiyrDgnMnMmMm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:05.156 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:05.741 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:09.957+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:09.957+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:05.741 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:06.356 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"768"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:06.356 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OrrvsH9xsyPuHOnt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16701/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16701/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:06.356 [print] {
"resourceType": "Condition",
"id": "16701",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:11.154+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:06.357 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:06.358 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"768"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:06.358 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OrrvsH9xsyPuHOnt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16701/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16701/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:06.358 [print] {
"resourceType": "Condition",
"id": "16701",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:11.154+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:06.358 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:06.960 [print] {
"resourceType": "Condition",
"id": "16701",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:11.154+02:00",
"source": "#OrrvsH9xsyPuHOnt",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:07.574 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:08.439 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:12.377+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:12.377+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:08.440 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:17.363 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"793"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:17.363 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6GUKpsvOKsa1l7gK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16702/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16702/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:17.363 [print] {
"resourceType": "Condition",
"id": "16702",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:22.165+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:53:17.363 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:17.379 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"793"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:17.379 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6GUKpsvOKsa1l7gK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16702/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16702/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:17.379 [print] {
"resourceType": "Condition",
"id": "16702",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:22.165+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:53:17.379 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:18.049 [print] {
"resourceType": "Condition",
"id": "16702",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:22.165+02:00",
"source": "#6GUKpsvOKsa1l7gK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:18.683 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:19.289 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:23.487+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:23.487+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:19.289 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:19.945 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"795"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:19.945 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xJFPadsQDUpHC9MM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16703/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16703/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:19.945 [print] {
"resourceType": "Condition",
"id": "16703",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:24.746+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:53:19.945 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:19.945 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"795"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:19.945 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xJFPadsQDUpHC9MM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16703/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16703/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:19.945 [print] {
"resourceType": "Condition",
"id": "16703",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:24.746+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:53:19.945 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:21.000 [print] {
"resourceType": "Condition",
"id": "16703",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:24.746+02:00",
"source": "#xJFPadsQDUpHC9MM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:21.640 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:22.426 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:26.437+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:26.437+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:22.426 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:23.027 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"781"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:23.027 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"sFD7BsxyrBguHfa5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16704/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16704/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:23.027 [print] {
"resourceType": "Condition",
"id": "16704",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:27.840+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:23.027 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:23.027 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"781"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:23.027 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"sFD7BsxyrBguHfa5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16704/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16704/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:23.027 [print] {
"resourceType": "Condition",
"id": "16704",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:27.840+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:23.027 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:23.629 [print] {
"resourceType": "Condition",
"id": "16704",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:27.840+02:00",
"source": "#sFD7BsxyrBguHfa5",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:24.253 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:24.808 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:29.053+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:29.053+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:24.824 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:25.457 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"782"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:25.457 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"x6vBFzNpUKowmteS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16705/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16705/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:25.457 [print] {
"resourceType": "Condition",
"id": "16705",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:30.251+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:53:25.457 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:25.457 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"782"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:25.457 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"x6vBFzNpUKowmteS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16705/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16705/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:25.457 [print] {
"resourceType": "Condition",
"id": "16705",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:30.251+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:53:25.457 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:26.100 [print] {
"resourceType": "Condition",
"id": "16705",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:30.251+02:00",
"source": "#x6vBFzNpUKowmteS",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:26.770 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:27.379 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:31.570+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:31.570+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:27.379 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:27.984 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"787"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:27.984 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"69XMdM5z4yjadvdf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16706/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16706/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:27.984 [print] {
"resourceType": "Condition",
"id": "16706",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:32.787+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:53:27.984 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:27.984 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"787"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:27.984 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"69XMdM5z4yjadvdf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16706/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16706/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:27.984 [print] {
"resourceType": "Condition",
"id": "16706",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:32.787+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:53:27.984 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:28.609 [print] {
"resourceType": "Condition",
"id": "16706",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:32.787+02:00",
"source": "#69XMdM5z4yjadvdf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:29.236 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:29.836 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:34.044+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:34.044+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:29.836 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:30.422 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"769"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:30.422 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9Q2JnPXUjexWvX8V"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16707/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16707/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:30.422 [print] {
"resourceType": "Condition",
"id": "16707",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:35.225+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:30.422 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:30.422 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"769"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:30.422 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9Q2JnPXUjexWvX8V"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16707/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16707/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:30.422 [print] {
"resourceType": "Condition",
"id": "16707",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:35.225+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:30.422 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:31.008 [print] {
"resourceType": "Condition",
"id": "16707",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:35.225+02:00",
"source": "#9Q2JnPXUjexWvX8V",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:31.577 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:32.179 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:36.393+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:36.393+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:32.179 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:32.780 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"784"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:32.780 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2UoD3UVhdtpPBknf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16708/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16708/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:32.780 [print] {
"resourceType": "Condition",
"id": "16708",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:37.582+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:53:32.780 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:32.780 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"784"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:32.780 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2UoD3UVhdtpPBknf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16708/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16708/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:32.780 [print] {
"resourceType": "Condition",
"id": "16708",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:37.582+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:53:32.780 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:33.714 [print] {
"resourceType": "Condition",
"id": "16708",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:37.582+02:00",
"source": "#2UoD3UVhdtpPBknf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:34.667 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:35.433 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:39.471+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:39.471+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:35.433 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:36.054 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"785"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:36.054 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fK60yt3H70CdxTi8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16709/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16709/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:36.054 [print] {
"resourceType": "Condition",
"id": "16709",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:40.858+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:53:36.054 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:36.054 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"785"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:36.054 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fK60yt3H70CdxTi8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16709/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16709/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:36.054 [print] {
"resourceType": "Condition",
"id": "16709",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:40.858+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:53:36.054 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:36.640 [print] {
"resourceType": "Condition",
"id": "16709",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:40.858+02:00",
"source": "#fK60yt3H70CdxTi8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:37.292 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:37.871 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:42.098+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:42.098+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:37.871 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:38.495 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"770"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:38.495 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZQe3PsbpMHBGi4tG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16710/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16710/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:38.495 [print] {
"resourceType": "Condition",
"id": "16710",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:43.296+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:38.495 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:38.495 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"770"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:38.495 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZQe3PsbpMHBGi4tG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16710/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16710/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:38.495 [print] {
"resourceType": "Condition",
"id": "16710",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:43.296+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:38.495 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:40.309 [print] {
"resourceType": "Condition",
"id": "16710",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:43.296+02:00",
"source": "#ZQe3PsbpMHBGi4tG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:40.929 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 16ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 16ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:41.529 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:45.707+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:45.707+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:41.529 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:42.115 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"793"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:42.115 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"82Z4qRfpmVvkWiFE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16711/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16711/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:42.115 [print] {
"resourceType": "Condition",
"id": "16711",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:46.919+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:53:42.115 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:42.115 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"793"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:42.115 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"82Z4qRfpmVvkWiFE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16711/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16711/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:42.115 [print] {
"resourceType": "Condition",
"id": "16711",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:46.919+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:53:42.115 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:42.717 [print] {
"resourceType": "Condition",
"id": "16711",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:46.919+02:00",
"source": "#82Z4qRfpmVvkWiFE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:43.297 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:43.883 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:48.097+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:48.097+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:43.883 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:44.501 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"783"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:44.501 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"w2AbhSqcGKqvBQgZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16712/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16712/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:44.501 [print] {
"resourceType": "Condition",
"id": "16712",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:49.310+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:53:44.501 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:44.516 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"783"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:44.516 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"w2AbhSqcGKqvBQgZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16712/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16712/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:44.516 [print] {
"resourceType": "Condition",
"id": "16712",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:49.310+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:53:44.516 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:45.395 [print] {
"resourceType": "Condition",
"id": "16712",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:49.310+02:00",
"source": "#w2AbhSqcGKqvBQgZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:46.000 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:46.576 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:50.812+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:50.812+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:46.576 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:47.224 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"774"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:47.224 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5BHA4XkW1R5ki5YV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16713/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16713/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:47.224 [print] {
"resourceType": "Condition",
"id": "16713",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:52.000+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:47.224 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:47.224 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"774"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:47.224 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5BHA4XkW1R5ki5YV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16713/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16713/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:47.224 [print] {
"resourceType": "Condition",
"id": "16713",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:52.000+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:47.224 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:47.828 [print] {
"resourceType": "Condition",
"id": "16713",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:52.000+02:00",
"source": "#5BHA4XkW1R5ki5YV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:48.437 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:49.062 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:53.250+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:53.250+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:49.062 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:49.699 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"782"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:49.699 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"eMzPymZQUsn2b8Tm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16714/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16714/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:49.699 [print] {
"resourceType": "Condition",
"id": "16714",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:54.511+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:53:49.699 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:49.699 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"782"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:49.699 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"eMzPymZQUsn2b8Tm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16714/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16714/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:49.699 [print] {
"resourceType": "Condition",
"id": "16714",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:54.511+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:53:49.699 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:50.285 [print] {
"resourceType": "Condition",
"id": "16714",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:54.511+02:00",
"source": "#eMzPymZQUsn2b8Tm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:50.849 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:51.479 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:55.668+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:55.668+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:51.479 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:52.147 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"787"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:52.147 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"AfzJjSw6GvjmOZ0J"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16715/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16715/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:52.147 [print] {
"resourceType": "Condition",
"id": "16715",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:56.946+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:53:52.147 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:52.147 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"787"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:52.147 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"AfzJjSw6GvjmOZ0J"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16715/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16715/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:52.147 [print] {
"resourceType": "Condition",
"id": "16715",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:56.946+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:53:52.147 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:52.758 [print] {
"resourceType": "Condition",
"id": "16715",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:56.946+02:00",
"source": "#AfzJjSw6GvjmOZ0J",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:53.579 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:54.154 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:53:58.379+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:53:58.379+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:54.154 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:54.742 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"768"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:54.742 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XfY4qHUZRD58TKHJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16716/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16716/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:54.742 [print] {
"resourceType": "Condition",
"id": "16716",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:59.546+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:54.742 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:54.742 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"768"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:54.742 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XfY4qHUZRD58TKHJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16716/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:53:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16716/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:53:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:54.742 [print] {
"resourceType": "Condition",
"id": "16716",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:59.546+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:53:54.742 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:55.360 [print] {
"resourceType": "Condition",
"id": "16716",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:53:59.546+02:00",
"source": "#XfY4qHUZRD58TKHJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:55.977 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:56.933 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:00.786+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:00.786+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:53:56.933 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:57.566 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"786"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:57.566 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qSLjPnFxqX46aNWp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16717/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16717/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:57.566 [print] {
"resourceType": "Condition",
"id": "16717",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:02.368+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:53:57.566 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:57.566 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"786"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:57.566 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qSLjPnFxqX46aNWp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16717/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16717/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:57.566 [print] {
"resourceType": "Condition",
"id": "16717",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:02.368+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:53:57.566 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:59.229 [print] {
"resourceType": "Condition",
"id": "16717",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:02.368+02:00",
"source": "#qSLjPnFxqX46aNWp",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:59.845 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:00.458 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:04.650+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:04.650+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:00.458 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:01.349 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"794"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:01.365 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lSFVv4KYmm7btNHM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16718/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16718/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:01.365 [print] {
"resourceType": "Condition",
"id": "16718",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:06.162+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:54:01.365 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:01.365 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"794"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:01.365 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lSFVv4KYmm7btNHM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16718/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16718/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:01.365 [print] {
"resourceType": "Condition",
"id": "16718",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:06.162+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:54:01.365 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:01.918 [print] {
"resourceType": "Condition",
"id": "16718",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:06.162+02:00",
"source": "#lSFVv4KYmm7btNHM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:02.576 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:03.483 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:07.378+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:07.378+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:03.483 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:04.104 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:04.104 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dut4t13NzR4ekSno"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16719/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16719/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:04.104 [print] {
"resourceType": "Condition",
"id": "16719",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:08.911+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:04.104 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:04.104 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:04.104 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dut4t13NzR4ekSno"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16719/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16719/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:04.104 [print] {
"resourceType": "Condition",
"id": "16719",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:08.911+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:04.104 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:04.678 [print] {
"resourceType": "Condition",
"id": "16719",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:08.911+02:00",
"source": "#dut4t13NzR4ekSno",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:05.531 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:06.120 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:10.333+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:10.333+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:06.120 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:06.742 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:06.742 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BjrFCg5I7aWcBKnU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16720/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16720/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:06.742 [print] {
"resourceType": "Condition",
"id": "16720",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:11.537+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:06.742 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:06.742 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:06.742 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BjrFCg5I7aWcBKnU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16720/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16720/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:06.742 [print] {
"resourceType": "Condition",
"id": "16720",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:11.537+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:06.742 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:07.312 [print] {
"resourceType": "Condition",
"id": "16720",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:11.537+02:00",
"source": "#BjrFCg5I7aWcBKnU",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:07.948 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:08.533 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:12.756+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:12.756+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:08.533 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:09.154 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:09.154 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hfOmc0S1JshfKuUl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16721/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16721/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:09.154 [print] {
"resourceType": "Condition",
"id": "16721",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:13.959+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:09.154 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:09.154 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:09.154 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hfOmc0S1JshfKuUl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16721/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16721/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:09.154 [print] {
"resourceType": "Condition",
"id": "16721",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:13.959+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:09.154 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:09.744 [print] {
"resourceType": "Condition",
"id": "16721",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:13.959+02:00",
"source": "#hfOmc0S1JshfKuUl",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:10.550 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 10ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 10ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:11.131 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:15.353+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:15.353+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:11.131 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:11.933 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"600"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:11.933 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6e2H99CH5drTrpyb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16722/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16722/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:11.933 [print] {
"resourceType": "Condition",
"id": "16722",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:16.732+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
> *
print COOKIES
11:54:11.933 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:11.933 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"600"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:11.933 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6e2H99CH5drTrpyb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16722/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16722/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:11.933 [print] {
"resourceType": "Condition",
"id": "16722",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:16.732+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
> *
print COOKIES
11:54:11.933 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:12.836 [print] {
"resourceType": "Condition",
"id": "16722",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:16.732+02:00",
"source": "#6e2H99CH5drTrpyb",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:13.505 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:14.229 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:18.309+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:18.309+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:14.229 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:14.850 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"612"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:14.850 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RteNCn3C1tzkueux"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16723/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16723/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:14.850 [print] {
"resourceType": "Condition",
"id": "16723",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:19.640+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
> *
print COOKIES
11:54:14.850 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:14.850 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"612"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:14.850 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RteNCn3C1tzkueux"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16723/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16723/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:14.850 [print] {
"resourceType": "Condition",
"id": "16723",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:19.640+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
> *
print COOKIES
11:54:14.850 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:15.406 [print] {
"resourceType": "Condition",
"id": "16723",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:19.640+02:00",
"source": "#RteNCn3C1tzkueux",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:16.023 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:16.624 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:20.839+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:20.839+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:16.624 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:17.213 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"598"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:17.213 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DnavwZxXO6C1T1r2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16724/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16724/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:17.213 [print] {
"resourceType": "Condition",
"id": "16724",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:22.021+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
> *
print COOKIES
11:54:17.213 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:17.213 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"598"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:17.213 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DnavwZxXO6C1T1r2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16724/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16724/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:17.213 [print] {
"resourceType": "Condition",
"id": "16724",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:22.021+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
> *
print COOKIES
11:54:17.213 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:17.838 [print] {
"resourceType": "Condition",
"id": "16724",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:22.021+02:00",
"source": "#DnavwZxXO6C1T1r2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:18.477 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:19.063 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:23.270+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:23.270+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:19.063 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:19.702 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"599"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:19.702 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zBFEjYNN0GdYYukd"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16725/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16725/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:19.702 [print] {
"resourceType": "Condition",
"id": "16725",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:24.501+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
> *
print COOKIES
11:54:19.702 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:19.702 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"599"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:19.702 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zBFEjYNN0GdYYukd"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16725/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16725/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:19.702 [print] {
"resourceType": "Condition",
"id": "16725",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:24.501+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
> *
print COOKIES
11:54:19.702 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:20.331 [print] {
"resourceType": "Condition",
"id": "16725",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:24.501+02:00",
"source": "#zBFEjYNN0GdYYukd",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:20.954 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:21.558 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:25.746+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:25.746+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:21.558 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:22.190 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:22.190 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pSsTtZn4wKoMDRwl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16726/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16726/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:22.190 [print] {
"resourceType": "Condition",
"id": "16726",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:26.996+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:22.190 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:22.190 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:22.190 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pSsTtZn4wKoMDRwl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16726/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16726/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:22.190 [print] {
"resourceType": "Condition",
"id": "16726",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:26.996+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:22.190 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:22.812 [print] {
"resourceType": "Condition",
"id": "16726",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:26.996+02:00",
"source": "#pSsTtZn4wKoMDRwl",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:23.429 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:24.006 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:28.234+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:28.234+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:24.006 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:24.643 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:24.643 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JizlDdd30aLg6V4e"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16727/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16727/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:24.643 [print] {
"resourceType": "Condition",
"id": "16727",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:29.440+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:24.643 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:24.643 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:24.643 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JizlDdd30aLg6V4e"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16727/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16727/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:24.643 [print] {
"resourceType": "Condition",
"id": "16727",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:29.440+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:24.643 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:25.529 [print] {
"resourceType": "Condition",
"id": "16727",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:29.440+02:00",
"source": "#JizlDdd30aLg6V4e",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:26.145 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:26.729 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:30.955+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:30.955+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:26.729 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:27.315 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:27.315 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xymKKgsEhXNElpuK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16728/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16728/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:27.315 [print] {
"resourceType": "Condition",
"id": "16728",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:32.131+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:27.315 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:27.331 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:27.331 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xymKKgsEhXNElpuK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16728/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16728/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:27.331 [print] {
"resourceType": "Condition",
"id": "16728",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:32.131+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:27.331 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:27.948 [print] {
"resourceType": "Condition",
"id": "16728",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:32.131+02:00",
"source": "#xymKKgsEhXNElpuK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:28.534 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:29.352 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:33.338+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:33.338+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:29.352 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:30.000 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:30.000 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cJzwSVATl3hUnTCq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16729/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16729/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:30.000 [print] {
"resourceType": "Condition",
"id": "16729",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:34.817+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:30.000 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:30.015 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:30.015 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cJzwSVATl3hUnTCq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16729/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16729/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:30.015 [print] {
"resourceType": "Condition",
"id": "16729",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:34.817+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:30.015 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:30.591 [print] {
"resourceType": "Condition",
"id": "16729",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:34.817+02:00",
"source": "#cJzwSVATl3hUnTCq",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:31.207 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:31.832 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:36.015+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:36.015+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:31.832 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:32.456 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:32.456 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HPmH7VplNLHngzUe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16730/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16730/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:32.456 [print] {
"resourceType": "Condition",
"id": "16730",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:37.266+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:32.456 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:32.456 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:32.456 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HPmH7VplNLHngzUe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16730/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16730/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:32.456 [print] {
"resourceType": "Condition",
"id": "16730",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:37.266+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:32.456 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:34.057 [print] {
"resourceType": "Condition",
"id": "16730",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:37.266+02:00",
"source": "#HPmH7VplNLHngzUe",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:34.659 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:35.262 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:39.463+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:39.463+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:35.262 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:36.298 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:36.298 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"upt79Jd3RDJXdsPj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16731/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16731/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:36.298 [print] {
"resourceType": "Condition",
"id": "16731",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:41.109+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:36.298 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:36.298 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:36.298 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"upt79Jd3RDJXdsPj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16731/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16731/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:36.298 [print] {
"resourceType": "Condition",
"id": "16731",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:41.109+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:54:36.298 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:36.875 [print] {
"resourceType": "Condition",
"id": "16731",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:41.109+02:00",
"source": "#upt79Jd3RDJXdsPj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:37.492 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:38.126 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:42.277+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:42.277+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:38.126 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:38.728 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"718"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:38.728 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vOt0B1NLsxIOJsl0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16732/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16732/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:38.728 [print] {
"resourceType": "Condition",
"id": "16732",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:43.530+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:54:38.728 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:38.728 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"718"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:38.728 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vOt0B1NLsxIOJsl0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16732/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16732/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:38.728 [print] {
"resourceType": "Condition",
"id": "16732",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:43.530+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:54:38.728 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:39.330 [print] {
"resourceType": "Condition",
"id": "16732",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:43.530+02:00",
"source": "#vOt0B1NLsxIOJsl0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:39.946 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:40.539 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:44.756+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:44.756+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:40.539 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:41.174 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"730"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:41.174 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oFbHbrqUhJGubS6D"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16733/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16733/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:41.174 [print] {
"resourceType": "Condition",
"id": "16733",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:45.971+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:54:41.174 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:41.174 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"730"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:41.174 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oFbHbrqUhJGubS6D"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16733/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16733/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:41.174 [print] {
"resourceType": "Condition",
"id": "16733",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:45.971+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:54:41.174 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:41.796 [print] {
"resourceType": "Condition",
"id": "16733",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:45.971+02:00",
"source": "#oFbHbrqUhJGubS6D",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:43.398 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:44.059 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:48.199+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:48.199+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:44.059 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:44.660 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"739"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:44.660 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"C7iZeHHwToNJSMLZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16734/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16734/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:44.660 [print] {
"resourceType": "Condition",
"id": "16734",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:49.461+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:54:44.660 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:44.660 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"739"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:44.660 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"C7iZeHHwToNJSMLZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16734/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16734/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:44.660 [print] {
"resourceType": "Condition",
"id": "16734",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:49.461+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:54:44.660 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:45.245 [print] {
"resourceType": "Condition",
"id": "16734",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:49.461+02:00",
"source": "#C7iZeHHwToNJSMLZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:45.815 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:46.717 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:50.633+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:50.633+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:46.717 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:47.298 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"718"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:47.298 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hjI1Ino83xBoM2Cb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16735/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16735/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:47.298 [print] {
"resourceType": "Condition",
"id": "16735",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:52.104+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:54:47.298 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:47.298 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"718"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:47.298 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hjI1Ino83xBoM2Cb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16735/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16735/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:47.298 [print] {
"resourceType": "Condition",
"id": "16735",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:52.104+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:54:47.298 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:47.941 [print] {
"resourceType": "Condition",
"id": "16735",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:52.104+02:00",
"source": "#hjI1Ino83xBoM2Cb",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:48.562 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:49.145 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:53.372+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:53.372+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:49.161 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:49.778 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"738"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:49.778 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0pYuIRE8ceCUpKAk"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16736/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16736/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:49.778 [print] {
"resourceType": "Condition",
"id": "16736",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:54.582+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:54:49.778 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:49.778 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"738"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:49.778 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0pYuIRE8ceCUpKAk"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16736/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16736/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:49.778 [print] {
"resourceType": "Condition",
"id": "16736",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:54.582+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:54:49.778 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:50.351 [print] {
"resourceType": "Condition",
"id": "16736",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:54.582+02:00",
"source": "#0pYuIRE8ceCUpKAk",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:50.937 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:51.540 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:55.745+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:55.745+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:51.540 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:52.415 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"726"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:52.415 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Bey26mMSpKAavuQj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16737/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16737/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:52.415 [print] {
"resourceType": "Condition",
"id": "16737",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:57.226+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:54:52.415 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:52.415 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"726"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:52.415 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Bey26mMSpKAavuQj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16737/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16737/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:52.415 [print] {
"resourceType": "Condition",
"id": "16737",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:57.226+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:54:52.415 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:53.003 [print] {
"resourceType": "Condition",
"id": "16737",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:57.226+02:00",
"source": "#Bey26mMSpKAavuQj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:53.641 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:54.315 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:54:58.448+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:54:58.448+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:54.315 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:54.900 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:54.900 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Gg8DHVJiTpJaQHIl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16738/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16738/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:54.900 [print] {
"resourceType": "Condition",
"id": "16738",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:59.700+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:54:54.900 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:54.900 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:54.900 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Gg8DHVJiTpJaQHIl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16738/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:54:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16738/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:54:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:54.900 [print] {
"resourceType": "Condition",
"id": "16738",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:59.700+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:54:54.900 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:55.469 [print] {
"resourceType": "Condition",
"id": "16738",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:54:59.700+02:00",
"source": "#Gg8DHVJiTpJaQHIl",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:56.088 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:56.674 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:00.873+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:00.873+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:56.674 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:57.461 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"730"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:57.461 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oeJwVBex8DmKVG7z"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16739/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16739/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:57.461 [print] {
"resourceType": "Condition",
"id": "16739",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:02.263+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:54:57.461 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:57.461 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"730"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:57.461 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oeJwVBex8DmKVG7z"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16739/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16739/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:57.461 [print] {
"resourceType": "Condition",
"id": "16739",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:02.263+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:54:57.461 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:58.083 [print] {
"resourceType": "Condition",
"id": "16739",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:02.263+02:00",
"source": "#oeJwVBex8DmKVG7z",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:58.684 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:59.275 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:03.489+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:03.489+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:54:59.275 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:59.861 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"731"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:59.861 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yXhPRgzKlsTsCrQn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16740/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16740/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:59.861 [print] {
"resourceType": "Condition",
"id": "16740",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:04.672+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:54:59.861 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:59.861 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"731"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:59.861 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yXhPRgzKlsTsCrQn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16740/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16740/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:59.861 [print] {
"resourceType": "Condition",
"id": "16740",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:04.672+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:54:59.861 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:00.431 [print] {
"resourceType": "Condition",
"id": "16740",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:04.672+02:00",
"source": "#yXhPRgzKlsTsCrQn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:01.063 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:01.712 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:05.878+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:05.878+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:01.712 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:02.299 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"726"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:02.299 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FMv1CVFrqp8pT7H7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16741/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16741/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:02.299 [print] {
"resourceType": "Condition",
"id": "16741",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:07.109+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:55:02.299 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:02.299 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"726"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:02.299 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FMv1CVFrqp8pT7H7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16741/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16741/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:02.299 [print] {
"resourceType": "Condition",
"id": "16741",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:07.109+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:55:02.299 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:02.945 [print] {
"resourceType": "Condition",
"id": "16741",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:07.109+02:00",
"source": "#FMv1CVFrqp8pT7H7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:03.549 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:04.155 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:08.347+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:08.347+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:04.155 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:04.805 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"730"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:04.805 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"O3vtRMFSNptkiwoE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16742/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16742/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:04.805 [print] {
"resourceType": "Condition",
"id": "16742",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:09.606+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:55:04.805 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:04.805 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"730"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:04.805 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"O3vtRMFSNptkiwoE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16742/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16742/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:04.805 [print] {
"resourceType": "Condition",
"id": "16742",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:09.606+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:55:04.805 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:05.424 [print] {
"resourceType": "Condition",
"id": "16742",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:09.606+02:00",
"source": "#O3vtRMFSNptkiwoE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:05.997 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:06.617 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:10.811+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:10.811+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:06.617 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:07.239 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"739"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:07.239 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ofjnRuXmOsxxQfp7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16743/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16743/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:07.239 [print] {
"resourceType": "Condition",
"id": "16743",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:12.047+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:55:07.239 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:07.239 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"739"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:07.239 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ofjnRuXmOsxxQfp7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16743/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16743/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:07.239 [print] {
"resourceType": "Condition",
"id": "16743",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:12.047+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:55:07.239 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:07.844 [print] {
"resourceType": "Condition",
"id": "16743",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:12.047+02:00",
"source": "#ofjnRuXmOsxxQfp7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:08.750 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:09.451 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:13.549+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:13.549+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:09.451 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:10.070 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"546"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:10.070 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"noK0e4ijNyTIyPVU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16744/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16744/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:10.070 [print] {
"resourceType": "Condition",
"id": "16744",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:14.875+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:55:10.070 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:10.076 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"546"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:10.076 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"noK0e4ijNyTIyPVU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16744/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16744/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:10.076 [print] {
"resourceType": "Condition",
"id": "16744",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:14.875+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:55:10.076 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:11.231 [print] {
"resourceType": "Condition",
"id": "16744",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:14.875+02:00",
"source": "#noK0e4ijNyTIyPVU",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:11.817 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:12.532 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:16.611+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:16.611+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:12.533 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:13.149 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"602"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:13.149 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Cc4fsr8pvQURfz0f"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16745/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16745/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:13.149 [print] {
"resourceType": "Condition",
"id": "16745",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:17.949+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:55:13.149 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:13.150 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"602"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:13.150 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Cc4fsr8pvQURfz0f"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16745/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16745/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:13.150 [print] {
"resourceType": "Condition",
"id": "16745",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:17.949+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:55:13.150 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:13.761 [print] {
"resourceType": "Condition",
"id": "16745",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:17.949+02:00",
"source": "#Cc4fsr8pvQURfz0f",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:14.362 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:14.978 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:19.174+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:19.174+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:14.978 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:15.842 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"614"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:15.842 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fxeCJ4NXZZkl3vfg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16746/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16746/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:15.842 [print] {
"resourceType": "Condition",
"id": "16746",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:20.647+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:55:15.842 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:15.842 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"614"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:15.842 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fxeCJ4NXZZkl3vfg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16746/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16746/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:15.842 [print] {
"resourceType": "Condition",
"id": "16746",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:20.647+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:55:15.842 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:16.638 [print] {
"resourceType": "Condition",
"id": "16746",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:20.647+02:00",
"source": "#fxeCJ4NXZZkl3vfg",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:17.222 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:17.823 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:22.024+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:22.024+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:17.823 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:18.417 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"615"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:18.417 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ISO01Czz2w1LbltL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16747/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16747/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:18.417 [print] {
"resourceType": "Condition",
"id": "16747",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:23.209+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:55:18.417 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:18.417 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"615"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:18.417 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ISO01Czz2w1LbltL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16747/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16747/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:18.417 [print] {
"resourceType": "Condition",
"id": "16747",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:23.209+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:55:18.417 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:19.025 [print] {
"resourceType": "Condition",
"id": "16747",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:23.209+02:00",
"source": "#ISO01Czz2w1LbltL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:19.625 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:20.187 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:24.427+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:24.427+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:20.187 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:21.126 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:21.126 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GnmaQg3ABAYpjinL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16748/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16748/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:21.126 [print] {
"resourceType": "Condition",
"id": "16748",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:25.940+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:55:21.126 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:21.142 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:21.142 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GnmaQg3ABAYpjinL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16748/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16748/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:21.142 [print] {
"resourceType": "Condition",
"id": "16748",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:25.940+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:55:21.142 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:21.711 [print] {
"resourceType": "Condition",
"id": "16748",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:25.940+02:00",
"source": "#GnmaQg3ABAYpjinL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:22.298 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:22.941 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:27.106+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:27.106+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:22.941 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:23.762 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:23.762 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"d8tnn7NIgNfx7zaF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16749/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16749/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:23.762 [print] {
"resourceType": "Condition",
"id": "16749",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:28.353+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:55:23.762 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:23.762 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:23.762 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"d8tnn7NIgNfx7zaF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16749/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16749/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:23.762 [print] {
"resourceType": "Condition",
"id": "16749",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:28.353+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:55:23.762 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:24.370 [print] {
"resourceType": "Condition",
"id": "16749",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:28.353+02:00",
"source": "#d8tnn7NIgNfx7zaF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:25.010 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:26.044 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:29.811+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:29.811+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:26.044 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:27.682 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:27.682 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"umZbhbEjQFUnz3QG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16750/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16750/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:27.682 [print] {
"resourceType": "Condition",
"id": "16750",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:32.481+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:55:27.682 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:27.683 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:27.683 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"umZbhbEjQFUnz3QG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16750/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16750/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:27.683 [print] {
"resourceType": "Condition",
"id": "16750",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:32.481+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:55:27.684 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:28.285 [print] {
"resourceType": "Condition",
"id": "16750",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:32.481+02:00",
"source": "#umZbhbEjQFUnz3QG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:29.307 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:30.181 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:34.109+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:34.109+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:30.182 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:30.796 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:30.796 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BCyTKUMdJCNEvtf7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16751/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16751/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:30.796 [print] {
"resourceType": "Condition",
"id": "16751",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:35.597+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:55:30.796 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:30.799 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:30.799 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BCyTKUMdJCNEvtf7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16751/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16751/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:30.799 [print] {
"resourceType": "Condition",
"id": "16751",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:35.597+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:55:30.799 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:31.393 [print] {
"resourceType": "Condition",
"id": "16751",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:35.597+02:00",
"source": "#BCyTKUMdJCNEvtf7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:31.974 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:32.597 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:36.780+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:36.780+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:32.597 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:33.202 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:33.202 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IgaX7SDmZNg0TgjC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16752/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16752/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:33.202 [print] {
"resourceType": "Condition",
"id": "16752",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:38.010+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:55:33.202 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:33.217 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:33.217 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IgaX7SDmZNg0TgjC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16752/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16752/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:33.217 [print] {
"resourceType": "Condition",
"id": "16752",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:38.010+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:55:33.217 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:33.785 [print] {
"resourceType": "Condition",
"id": "16752",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:38.010+02:00",
"source": "#IgaX7SDmZNg0TgjC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:34.409 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:34.989 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:39.217+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:39.217+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:34.989 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:35.595 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:35.595 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xPaM8AN4wPhUJJt9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16753/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16753/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:35.595 [print] {
"resourceType": "Condition",
"id": "16753",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:40.400+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:55:35.595 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:35.595 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:35.595 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xPaM8AN4wPhUJJt9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16753/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16753/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:35.595 [print] {
"resourceType": "Condition",
"id": "16753",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:40.400+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:55:35.595 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:36.175 [print] {
"resourceType": "Condition",
"id": "16753",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:40.400+02:00",
"source": "#xPaM8AN4wPhUJJt9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:36.808 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:37.415 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:41.598+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:41.598+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:37.431 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:38.180 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:38.180 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GmprLSxyUSBhpBWS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16754/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16754/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:38.180 [print] {
"resourceType": "Condition",
"id": "16754",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:42.980+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:55:38.180 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:38.180 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:38.180 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GmprLSxyUSBhpBWS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16754/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16754/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:38.180 [print] {
"resourceType": "Condition",
"id": "16754",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:42.980+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:55:38.180 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:38.751 [print] {
"resourceType": "Condition",
"id": "16754",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:42.980+02:00",
"source": "#GmprLSxyUSBhpBWS",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:39.352 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:39.953 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:44.166+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:44.166+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:39.953 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:40.806 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:40.806 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"T2XERqbfHdNVHJM5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16755/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16755/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:40.806 [print] {
"resourceType": "Condition",
"id": "16755",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:45.612+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:55:40.806 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:40.806 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:40.806 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"T2XERqbfHdNVHJM5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16755/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16755/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:40.806 [print] {
"resourceType": "Condition",
"id": "16755",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:45.612+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:55:40.806 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:41.413 [print] {
"resourceType": "Condition",
"id": "16755",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:45.612+02:00",
"source": "#T2XERqbfHdNVHJM5",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:42.018 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:42.673 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:46.824+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:46.824+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:42.673 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:43.259 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:43.259 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0YLgWcwVRFk61OGs"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16756/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16756/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:43.259 [print] {
"resourceType": "Condition",
"id": "16756",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:48.073+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:55:43.259 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:43.275 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:43.275 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0YLgWcwVRFk61OGs"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16756/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16756/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:43.275 [print] {
"resourceType": "Condition",
"id": "16756",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:48.073+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:55:43.275 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:43.877 [print] {
"resourceType": "Condition",
"id": "16756",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:48.073+02:00",
"source": "#0YLgWcwVRFk61OGs",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:44.471 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:45.080 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:49.277+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:49.277+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:45.080 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:45.664 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:45.664 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qVFLCjHMtuTOnnPr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16757/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16757/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:45.664 [print] {
"resourceType": "Condition",
"id": "16757",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:50.462+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:55:45.664 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:45.664 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:45.664 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qVFLCjHMtuTOnnPr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16757/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16757/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:45.664 [print] {
"resourceType": "Condition",
"id": "16757",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:50.462+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:55:45.664 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:46.303 [print] {
"resourceType": "Condition",
"id": "16757",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:50.462+02:00",
"source": "#qVFLCjHMtuTOnnPr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:46.924 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:48.490 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:51.717+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:51.717+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:48.491 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:49.109 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:49.109 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zCHi8NWgXKHE87a3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16758/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16758/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:49.109 [print] {
"resourceType": "Condition",
"id": "16758",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:53.900+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:55:49.109 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:49.110 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:49.110 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zCHi8NWgXKHE87a3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16758/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16758/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:49.110 [print] {
"resourceType": "Condition",
"id": "16758",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:53.900+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:55:49.110 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:49.769 [print] {
"resourceType": "Condition",
"id": "16758",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:53.900+02:00",
"source": "#zCHi8NWgXKHE87a3",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:50.412 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 20ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 20ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:51.052 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:55.199+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:55.199+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:51.054 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:51.645 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:51.645 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"o3scUj24VwcSNPrS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16759/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16759/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:51.645 [print] {
"resourceType": "Condition",
"id": "16759",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:56.447+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:55:51.645 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:51.645 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:51.645 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"o3scUj24VwcSNPrS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16759/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16759/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:51.645 [print] {
"resourceType": "Condition",
"id": "16759",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:56.447+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:55:51.645 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:52.208 [print] {
"resourceType": "Condition",
"id": "16759",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:56.447+02:00",
"source": "#o3scUj24VwcSNPrS",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:52.879 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 10ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 10ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:53.463 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:55:57.669+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:55:57.669+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:53.463 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:54.065 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:54.065 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VRrT8dxYWERzdKVl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16760/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16760/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:54.065 [print] {
"resourceType": "Condition",
"id": "16760",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:58.876+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:55:54.065 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:54.065 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:54.065 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VRrT8dxYWERzdKVl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16760/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:55:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16760/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:55:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:54.065 [print] {
"resourceType": "Condition",
"id": "16760",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:58.876+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:55:54.065 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:54.653 [print] {
"resourceType": "Condition",
"id": "16760",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:55:58.876+02:00",
"source": "#VRrT8dxYWERzdKVl",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:55.251 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:55.863 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:00.043+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:00.043+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:55.864 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:56.462 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:56.462 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2gMIRmt75miQrSvc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16761/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16761/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:56.462 [print] {
"resourceType": "Condition",
"id": "16761",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:01.259+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:55:56.462 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:56.464 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:56.464 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2gMIRmt75miQrSvc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16761/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16761/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:56.464 [print] {
"resourceType": "Condition",
"id": "16761",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:01.259+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:55:56.464 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:57.072 [print] {
"resourceType": "Condition",
"id": "16761",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:01.259+02:00",
"source": "#2gMIRmt75miQrSvc",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:58.099 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:58.801 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:02.903+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:02.903+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:55:58.801 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:59.466 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:59.466 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Y4hLANlqMFUveqpA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16762/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16762/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:59.466 [print] {
"resourceType": "Condition",
"id": "16762",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:04.269+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:55:59.466 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:59.466 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:59.466 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Y4hLANlqMFUveqpA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16762/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16762/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:59.466 [print] {
"resourceType": "Condition",
"id": "16762",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:04.269+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:55:59.466 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:00.413 [print] {
"resourceType": "Condition",
"id": "16762",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:04.269+02:00",
"source": "#Y4hLANlqMFUveqpA",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:01.082 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:01.676 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:05.883+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:05.883+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:01.676 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:02.579 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:02.579 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"O0DHVVvizlkr43HF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16763/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16763/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:02.579 [print] {
"resourceType": "Condition",
"id": "16763",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:07.388+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:56:02.579 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:02.595 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:02.595 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"O0DHVVvizlkr43HF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16763/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16763/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:02.595 [print] {
"resourceType": "Condition",
"id": "16763",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:07.388+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:56:02.595 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:03.176 [print] {
"resourceType": "Condition",
"id": "16763",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:07.388+02:00",
"source": "#O0DHVVvizlkr43HF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:03.764 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:04.342 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:08.563+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:08.563+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:04.343 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:04.954 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:04.954 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EsWW81QXM7OIS6Jc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16764/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16764/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:04.954 [print] {
"resourceType": "Condition",
"id": "16764",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:09.750+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:56:04.954 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:04.955 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:04.955 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EsWW81QXM7OIS6Jc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16764/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16764/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:04.955 [print] {
"resourceType": "Condition",
"id": "16764",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:09.750+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:56:04.955 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:05.528 [print] {
"resourceType": "Condition",
"id": "16764",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:09.750+02:00",
"source": "#EsWW81QXM7OIS6Jc",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:06.183 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:06.806 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:10.983+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:10.983+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:06.807 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:07.406 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:07.406 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"PLWHbfLfMRePOg2Z"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16765/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16765/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:07.406 [print] {
"resourceType": "Condition",
"id": "16765",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:12.207+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:56:07.406 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:07.406 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:07.406 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"PLWHbfLfMRePOg2Z"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16765/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16765/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:07.406 [print] {
"resourceType": "Condition",
"id": "16765",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:12.207+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:56:07.406 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:08.009 [print] {
"resourceType": "Condition",
"id": "16765",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:12.207+02:00",
"source": "#PLWHbfLfMRePOg2Z",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:08.662 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 17ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 17ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:09.364 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:13.451+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:13.451+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:09.364 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:10.979 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:10.979 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1TDaHQvQDlGenWp2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16766/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16766/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:10.979 [print] {
"resourceType": "Condition",
"id": "16766",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:15.788+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:56:10.979 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:10.979 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:10.979 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1TDaHQvQDlGenWp2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16766/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16766/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:10.979 [print] {
"resourceType": "Condition",
"id": "16766",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:15.788+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:56:10.979 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:11.611 [print] {
"resourceType": "Condition",
"id": "16766",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:15.788+02:00",
"source": "#1TDaHQvQDlGenWp2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:12.278 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 20ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 20ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:12.865 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:17.078+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:17.078+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:12.880 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:13.492 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:13.492 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JQoiiLdrwA67CLbj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16767/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16767/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:13.492 [print] {
"resourceType": "Condition",
"id": "16767",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:18.293+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:56:13.492 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:13.492 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:13.492 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JQoiiLdrwA67CLbj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16767/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16767/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:13.492 [print] {
"resourceType": "Condition",
"id": "16767",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:18.293+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:56:13.492 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:14.072 [print] {
"resourceType": "Condition",
"id": "16767",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:18.293+02:00",
"source": "#JQoiiLdrwA67CLbj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:14.658 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:15.251 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:19.458+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:19.458+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:15.251 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:15.827 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:15.827 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OysT3dbPzfFTxa8U"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16768/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16768/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:15.827 [print] {
"resourceType": "Condition",
"id": "16768",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:20.630+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:56:15.827 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:15.827 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:15.827 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OysT3dbPzfFTxa8U"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16768/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16768/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:15.827 [print] {
"resourceType": "Condition",
"id": "16768",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:20.630+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:56:15.827 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:16.459 [print] {
"resourceType": "Condition",
"id": "16768",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:20.630+02:00",
"source": "#OysT3dbPzfFTxa8U",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:17.497 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:19.123 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:22.291+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:22.291+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:19.124 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:19.797 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:19.797 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1r2sIMbYbchWQLe7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16769/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16769/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:19.797 [print] {
"resourceType": "Condition",
"id": "16769",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:24.593+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:56:19.797 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:19.798 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:19.798 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1r2sIMbYbchWQLe7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16769/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16769/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:19.798 [print] {
"resourceType": "Condition",
"id": "16769",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:24.593+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:56:19.798 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:26.103 [print] {
"resourceType": "Condition",
"id": "16769",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:24.593+02:00",
"source": "#1r2sIMbYbchWQLe7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:26.753 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:27.339 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:31.555+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:31.555+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:27.339 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:27.940 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:27.940 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XqARx43W1ceJ7LTV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16770/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16770/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:27.940 [print] {
"resourceType": "Condition",
"id": "16770",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:32.741+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:56:27.940 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:27.940 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:27.940 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XqARx43W1ceJ7LTV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16770/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16770/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:27.940 [print] {
"resourceType": "Condition",
"id": "16770",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:32.741+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:56:27.940 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:28.545 [print] {
"resourceType": "Condition",
"id": "16770",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:32.741+02:00",
"source": "#XqARx43W1ceJ7LTV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:29.172 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:29.841 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:33.974+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:33.974+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:29.841 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:30.457 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:30.457 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hVoELSCcRB3XSOoH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16771/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16771/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:30.457 [print] {
"resourceType": "Condition",
"id": "16771",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:35.258+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:56:30.457 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:30.457 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:30.457 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hVoELSCcRB3XSOoH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16771/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16771/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:30.457 [print] {
"resourceType": "Condition",
"id": "16771",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:35.258+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:56:30.457 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:31.099 [print] {
"resourceType": "Condition",
"id": "16771",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:35.258+02:00",
"source": "#hVoELSCcRB3XSOoH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:31.736 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:32.361 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:36.546+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:36.546+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:32.361 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:32.951 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:32.951 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1PsYEInCko3VUOR7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16772/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16772/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:32.951 [print] {
"resourceType": "Condition",
"id": "16772",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:37.754+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:56:32.951 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:32.951 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:32.951 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1PsYEInCko3VUOR7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16772/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16772/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:32.951 [print] {
"resourceType": "Condition",
"id": "16772",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:37.754+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:56:32.951 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:33.771 [print] {
"resourceType": "Condition",
"id": "16772",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:37.754+02:00",
"source": "#1PsYEInCko3VUOR7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:34.399 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:35.157 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:39.197+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:39.197+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:35.158 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:35.755 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:35.755 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"91R9z7iPTgjvYOrO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16773/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16773/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:35.755 [print] {
"resourceType": "Condition",
"id": "16773",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:40.553+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:56:35.755 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:35.757 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:35.757 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"91R9z7iPTgjvYOrO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16773/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16773/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:35.757 [print] {
"resourceType": "Condition",
"id": "16773",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:40.553+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:56:35.757 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:36.325 [print] {
"resourceType": "Condition",
"id": "16773",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:40.553+02:00",
"source": "#91R9z7iPTgjvYOrO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:36.954 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:37.579 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:41.755+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:41.755+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:37.580 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:38.184 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:38.184 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aZDA6FQNgxnaiYUz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16774/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16774/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:38.184 [print] {
"resourceType": "Condition",
"id": "16774",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:42.985+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:56:38.184 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:38.185 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:38.185 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aZDA6FQNgxnaiYUz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16774/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16774/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:38.185 [print] {
"resourceType": "Condition",
"id": "16774",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:42.985+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:56:38.185 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:38.789 [print] {
"resourceType": "Condition",
"id": "16774",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:42.985+02:00",
"source": "#aZDA6FQNgxnaiYUz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:39.463 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:40.152 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:44.264+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:44.264+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:40.152 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:40.780 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:40.780 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h8c5i7wQsY6e0VYK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16775/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16775/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:40.780 [print] {
"resourceType": "Condition",
"id": "16775",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:45.578+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:56:40.780 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:40.780 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:40.780 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h8c5i7wQsY6e0VYK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16775/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16775/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:40.780 [print] {
"resourceType": "Condition",
"id": "16775",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:45.578+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:56:40.780 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:41.378 [print] {
"resourceType": "Condition",
"id": "16775",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:45.578+02:00",
"source": "#h8c5i7wQsY6e0VYK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:42.025 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:42.595 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:46.823+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:46.823+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:42.595 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:43.212 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:43.212 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"e1ri9rGGCKJyEQSH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16776/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16776/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:43.212 [print] {
"resourceType": "Condition",
"id": "16776",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:48.022+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:56:43.212 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:43.212 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:43.212 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"e1ri9rGGCKJyEQSH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16776/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16776/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:43.212 [print] {
"resourceType": "Condition",
"id": "16776",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:48.022+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:56:43.212 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:43.836 [print] {
"resourceType": "Condition",
"id": "16776",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:48.022+02:00",
"source": "#e1ri9rGGCKJyEQSH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:44.444 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:45.008 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:49.245+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:49.245+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:45.009 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:45.767 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:45.767 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"241Frkn0yB3J65kE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16777/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16777/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:45.767 [print] {
"resourceType": "Condition",
"id": "16777",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:50.575+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:56:45.767 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:45.767 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:45.767 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"241Frkn0yB3J65kE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16777/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16777/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:45.767 [print] {
"resourceType": "Condition",
"id": "16777",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:50.575+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:56:45.767 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:46.391 [print] {
"resourceType": "Condition",
"id": "16777",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:50.575+02:00",
"source": "#241Frkn0yB3J65kE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:46.986 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:47.950 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:51.775+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:51.775+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:47.951 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:48.937 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:48.937 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6yD3DsessqeDAP2r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16778/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16778/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:48.937 [print] {
"resourceType": "Condition",
"id": "16778",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:53.739+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:56:48.937 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:48.939 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:48.939 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6yD3DsessqeDAP2r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16778/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16778/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:48.939 [print] {
"resourceType": "Condition",
"id": "16778",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:53.739+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:56:48.939 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:49.529 [print] {
"resourceType": "Condition",
"id": "16778",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:53.739+02:00",
"source": "#6yD3DsessqeDAP2r",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:50.185 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:50.819 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:54.981+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:54.981+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:50.820 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:51.410 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:51.410 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"spr9GfUQ8XjqKwlD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16779/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16779/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:51.410 [print] {
"resourceType": "Condition",
"id": "16779",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:56.215+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:56:51.410 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:51.410 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:51.410 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"spr9GfUQ8XjqKwlD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16779/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16779/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:51.410 [print] {
"resourceType": "Condition",
"id": "16779",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:56.215+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:56:51.410 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:52.029 [print] {
"resourceType": "Condition",
"id": "16779",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:56.215+02:00",
"source": "#spr9GfUQ8XjqKwlD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:52.667 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:53.278 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:57.469+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:57.469+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:53.278 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:53.920 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:53.920 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vaXUIDdmKAZqbd6V"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16780/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16780/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:53.920 [print] {
"resourceType": "Condition",
"id": "16780",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:58.712+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:56:53.920 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:53.921 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:53.921 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vaXUIDdmKAZqbd6V"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16780/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:56:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16780/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:56:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:53.921 [print] {
"resourceType": "Condition",
"id": "16780",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:58.712+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:56:53.921 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:54.496 [print] {
"resourceType": "Condition",
"id": "16780",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:56:58.712+02:00",
"source": "#vaXUIDdmKAZqbd6V",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:55.110 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 15ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 15ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:55.694 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:56:59.905+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:56:59.905+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:55.696 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:56.305 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:56.305 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DmELz4H9Z7Itz5JZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16781/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16781/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:56.305 [print] {
"resourceType": "Condition",
"id": "16781",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:01.109+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:56:56.305 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:56.321 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:56.321 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DmELz4H9Z7Itz5JZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16781/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16781/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:56.321 [print] {
"resourceType": "Condition",
"id": "16781",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:01.109+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:56:56.321 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:56.901 [print] {
"resourceType": "Condition",
"id": "16781",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:01.109+02:00",
"source": "#DmELz4H9Z7Itz5JZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:57.476 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:58.120 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:02.277+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:02.277+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:56:58.120 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:58.725 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:58.725 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"M3WxtEtnLlJ8vUux"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16782/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16782/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:58.725 [print] {
"resourceType": "Condition",
"id": "16782",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:03.529+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:56:58.725 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:58.725 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:58.725 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"M3WxtEtnLlJ8vUux"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16782/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16782/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:58.725 [print] {
"resourceType": "Condition",
"id": "16782",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:03.529+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:56:58.725 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:59.342 [print] {
"resourceType": "Condition",
"id": "16782",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:03.529+02:00",
"source": "#M3WxtEtnLlJ8vUux",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:00.046 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:00.654 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:04.829+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:04.829+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:00.654 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:01.291 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"768"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:01.291 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HrcDQmGwP0IEfR06"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16783/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16783/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:01.291 [print] {
"resourceType": "Condition",
"id": "16783",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:06.094+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:57:01.291 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:01.291 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"768"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:01.291 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HrcDQmGwP0IEfR06"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16783/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16783/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:01.291 [print] {
"resourceType": "Condition",
"id": "16783",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:06.094+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:57:01.291 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:01.908 [print] {
"resourceType": "Condition",
"id": "16783",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:06.094+02:00",
"source": "#HrcDQmGwP0IEfR06",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:02.579 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 16ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 16ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:03.146 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:07.378+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:07.378+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:03.161 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:04.199 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"793"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:04.199 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LjDRG2cYRVfGsnPn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16784/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16784/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:04.199 [print] {
"resourceType": "Condition",
"id": "16784",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:08.980+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:57:04.199 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:04.201 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"793"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:04.201 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LjDRG2cYRVfGsnPn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16784/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16784/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:04.201 [print] {
"resourceType": "Condition",
"id": "16784",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:08.980+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:57:04.201 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:05.092 [print] {
"resourceType": "Condition",
"id": "16784",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:08.980+02:00",
"source": "#LjDRG2cYRVfGsnPn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:06.706 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:07.304 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:11.516+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:11.516+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:07.305 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:07.957 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"795"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:07.957 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8TaCbUI8VcGGeoAa"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16785/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16785/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:07.957 [print] {
"resourceType": "Condition",
"id": "16785",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:12.737+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:57:07.957 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:07.959 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"795"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:07.959 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8TaCbUI8VcGGeoAa"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16785/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16785/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:07.959 [print] {
"resourceType": "Condition",
"id": "16785",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:12.737+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:57:07.959 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:09.559 [print] {
"resourceType": "Condition",
"id": "16785",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:12.737+02:00",
"source": "#8TaCbUI8VcGGeoAa",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:10.173 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:11.002 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:14.968+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:14.968+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:11.003 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:11.592 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"781"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:11.592 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pTbg1v2v8tSeleii"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16786/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16786/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:11.592 [print] {
"resourceType": "Condition",
"id": "16786",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:16.390+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:57:11.592 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:11.593 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"781"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:11.594 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pTbg1v2v8tSeleii"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16786/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16786/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:11.594 [print] {
"resourceType": "Condition",
"id": "16786",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:16.390+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:57:11.594 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:12.146 [print] {
"resourceType": "Condition",
"id": "16786",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:16.390+02:00",
"source": "#pTbg1v2v8tSeleii",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:12.779 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 12ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 12ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:13.807 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:17.573+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:17.573+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:13.809 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:14.431 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"782"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:14.431 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6OcMYvpc0WwZoE1S"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16787/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16787/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:14.431 [print] {
"resourceType": "Condition",
"id": "16787",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:19.230+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:57:14.432 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:14.433 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"782"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:14.433 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6OcMYvpc0WwZoE1S"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16787/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16787/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:14.433 [print] {
"resourceType": "Condition",
"id": "16787",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:19.230+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:57:14.433 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:15.064 [print] {
"resourceType": "Condition",
"id": "16787",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:19.230+02:00",
"source": "#6OcMYvpc0WwZoE1S",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:15.693 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:16.545 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:20.489+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:20.489+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:16.545 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:17.166 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"787"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:17.166 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"AeuH8IPbkc4BeLtU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16788/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16788/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:17.166 [print] {
"resourceType": "Condition",
"id": "16788",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:21.960+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:57:17.166 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:17.168 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"787"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:17.168 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"AeuH8IPbkc4BeLtU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16788/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16788/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:17.168 [print] {
"resourceType": "Condition",
"id": "16788",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:21.960+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:57:17.168 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:17.745 [print] {
"resourceType": "Condition",
"id": "16788",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:21.960+02:00",
"source": "#AeuH8IPbkc4BeLtU",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:18.345 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:18.924 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:23.147+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:23.147+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:18.924 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:19.526 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"769"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:19.526 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IM9znYYhHqjrnDAC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16789/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16789/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:19.527 [print] {
"resourceType": "Condition",
"id": "16789",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:24.325+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:57:19.527 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:19.528 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"769"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:19.528 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IM9znYYhHqjrnDAC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16789/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16789/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:19.528 [print] {
"resourceType": "Condition",
"id": "16789",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:24.325+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:57:19.528 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:20.167 [print] {
"resourceType": "Condition",
"id": "16789",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:24.325+02:00",
"source": "#IM9znYYhHqjrnDAC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:20.772 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:21.342 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:25.572+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:25.572+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:21.343 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:21.937 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"784"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:21.937 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h5kgIEPwyruVdzb6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16790/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16790/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:21.937 [print] {
"resourceType": "Condition",
"id": "16790",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:26.723+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:57:21.937 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:21.938 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"784"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:21.938 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h5kgIEPwyruVdzb6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16790/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16790/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:21.938 [print] {
"resourceType": "Condition",
"id": "16790",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:26.723+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:57:21.939 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:22.534 [print] {
"resourceType": "Condition",
"id": "16790",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:26.723+02:00",
"source": "#h5kgIEPwyruVdzb6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:23.114 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:23.725 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:27.911+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:27.911+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:23.725 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:24.679 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"785"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:24.679 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bUeoBAU7XUT8oMxg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16791/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16791/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:24.679 [print] {
"resourceType": "Condition",
"id": "16791",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:29.481+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:57:24.679 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:24.679 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"785"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:24.679 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bUeoBAU7XUT8oMxg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16791/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16791/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:24.679 [print] {
"resourceType": "Condition",
"id": "16791",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:29.481+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:57:24.679 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:25.279 [print] {
"resourceType": "Condition",
"id": "16791",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:29.481+02:00",
"source": "#bUeoBAU7XUT8oMxg",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "818983003",
"display": "Abdomen"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:25.876 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:26.501 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:30.683+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:30.683+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:26.502 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:27.100 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"770"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:27.100 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3lqDnkrDz7rGhQsH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16792/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16792/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:27.100 [print] {
"resourceType": "Condition",
"id": "16792",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:31.911+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:57:27.100 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:27.100 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"770"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:27.100 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3lqDnkrDz7rGhQsH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16792/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16792/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:27.100 [print] {
"resourceType": "Condition",
"id": "16792",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:31.911+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:57:27.100 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:27.725 [print] {
"resourceType": "Condition",
"id": "16792",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:31.911+02:00",
"source": "#3lqDnkrDz7rGhQsH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:28.475 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:29.499 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:33.271+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:33.271+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:29.500 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:30.612 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"793"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:30.612 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SoudwCdLX5BRvv34"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16793/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16793/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:30.612 [print] {
"resourceType": "Condition",
"id": "16793",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:35.410+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:57:30.612 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:30.612 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"793"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:30.612 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SoudwCdLX5BRvv34"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16793/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16793/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:30.612 [print] {
"resourceType": "Condition",
"id": "16793",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:35.410+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:57:30.612 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:31.610 [print] {
"resourceType": "Condition",
"id": "16793",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:35.410+02:00",
"source": "#SoudwCdLX5BRvv34",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:32.210 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:32.837 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:37.002+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:37.002+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:32.838 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:33.689 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"783"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:33.689 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fwTRrpdonCBgLOSw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16794/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16794/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:33.689 [print] {
"resourceType": "Condition",
"id": "16794",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:38.460+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:57:33.689 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:33.689 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"783"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:33.689 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fwTRrpdonCBgLOSw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16794/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16794/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:33.689 [print] {
"resourceType": "Condition",
"id": "16794",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:38.460+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:57:33.689 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:34.297 [print] {
"resourceType": "Condition",
"id": "16794",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:38.460+02:00",
"source": "#fwTRrpdonCBgLOSw",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12921003",
"display": "Pelvis"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:34.883 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:35.502 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:39.688+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:39.688+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:35.503 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:36.118 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"774"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:36.118 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Auz29phvCLS1JJEq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16795/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16795/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:36.118 [print] {
"resourceType": "Condition",
"id": "16795",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:40.915+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:57:36.118 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:36.118 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"774"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:36.118 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Auz29phvCLS1JJEq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16795/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16795/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:36.118 [print] {
"resourceType": "Condition",
"id": "16795",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:40.915+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:57:36.118 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:36.709 [print] {
"resourceType": "Condition",
"id": "16795",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:40.915+02:00",
"source": "#Auz29phvCLS1JJEq",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:37.595 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:38.652 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:42.385+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:42.385+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:38.653 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:39.280 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"782"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:39.280 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GdpgsK74XjTkNEjR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16796/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16796/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:39.280 [print] {
"resourceType": "Condition",
"id": "16796",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:44.087+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:57:39.280 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:39.280 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"782"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:39.280 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GdpgsK74XjTkNEjR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16796/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16796/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:39.280 [print] {
"resourceType": "Condition",
"id": "16796",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:44.087+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:57:39.280 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:39.857 [print] {
"resourceType": "Condition",
"id": "16796",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:44.087+02:00",
"source": "#GdpgsK74XjTkNEjR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:40.481 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:41.056 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:45.287+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:45.287+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:41.057 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:41.645 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"787"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:41.645 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZmwjGUi0RuZB2CDt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16797/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16797/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:41.645 [print] {
"resourceType": "Condition",
"id": "16797",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:46.441+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:57:41.645 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:41.645 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"787"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:41.645 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZmwjGUi0RuZB2CDt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16797/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16797/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:41.645 [print] {
"resourceType": "Condition",
"id": "16797",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:46.441+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:57:41.645 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
http call failed after 518 milliseconds for url: https://psp-sp-fhir.prep.sanit.cineca.it/fhir/Condition/16797 karate/src/features/api/xav.feature:28
Then
status 200
And
print response
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:42.163 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:42.816 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"768"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:42.816 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VMohjLcn8GEl148Y"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16798/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16798/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:42.817 [print] {
"resourceType": "Condition",
"id": "16798",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:47.603+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:57:42.817 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:42.818 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"768"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:42.818 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VMohjLcn8GEl148Y"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16798/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16798/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:42.818 [print] {
"resourceType": "Condition",
"id": "16798",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:47.603+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:57:42.818 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:43.394 [print] {
"resourceType": "Condition",
"id": "16798",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:47.603+02:00",
"source": "#VMohjLcn8GEl148Y",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:44.003 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:44.639 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:48.795+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:48.795+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:44.639 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:45.551 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"786"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:45.551 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EDGmjg2Hzu3bnJjG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16799/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16799/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:45.551 [print] {
"resourceType": "Condition",
"id": "16799",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:50.350+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:57:45.551 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:45.553 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"786"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:45.553 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EDGmjg2Hzu3bnJjG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16799/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16799/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:45.553 [print] {
"resourceType": "Condition",
"id": "16799",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:50.350+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:57:45.553 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:46.128 [print] {
"resourceType": "Condition",
"id": "16799",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:50.350+02:00",
"source": "#EDGmjg2Hzu3bnJjG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:46.747 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:47.388 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:51.547+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:51.547+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:47.389 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:49.005 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"794"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:49.006 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"M7bufmIehX5O6WZr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16800/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16800/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:49.006 [print] {
"resourceType": "Condition",
"id": "16800",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:53.803+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:57:49.006 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:49.007 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"794"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:49.007 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"M7bufmIehX5O6WZr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16800/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16800/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:49.008 [print] {
"resourceType": "Condition",
"id": "16800",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:53.803+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:57:49.008 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:49.632 [print] {
"resourceType": "Condition",
"id": "16800",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:53.803+02:00",
"source": "#M7bufmIehX5O6WZr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "90456006",
"display": "Sympathetic nerve"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:50.231 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:50.879 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:55.045+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:55.045+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:50.880 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:51.508 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:51.508 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6tMvEYRHPHr2UIUq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16801/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16801/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:51.508 [print] {
"resourceType": "Condition",
"id": "16801",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:56.307+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:57:51.508 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:51.509 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:51.509 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6tMvEYRHPHr2UIUq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16801/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16801/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:51.509 [print] {
"resourceType": "Condition",
"id": "16801",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:56.307+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:57:51.509 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:52.078 [print] {
"resourceType": "Condition",
"id": "16801",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:56.307+02:00",
"source": "#6tMvEYRHPHr2UIUq",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:52.691 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:53.252 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:57:57.487+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:57:57.487+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:53.252 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:53.877 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:53.877 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"49Lb6evBkPkTVC9H"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16802/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16802/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:53.877 [print] {
"resourceType": "Condition",
"id": "16802",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:58.681+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:57:53.877 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:53.877 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:53.877 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"49Lb6evBkPkTVC9H"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16802/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:57:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16802/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:57:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:53.877 [print] {
"resourceType": "Condition",
"id": "16802",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:58.681+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:57:53.877 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:54.765 [print] {
"resourceType": "Condition",
"id": "16802",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:57:58.681+02:00",
"source": "#49Lb6evBkPkTVC9H",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:55.399 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:56.010 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:00.200+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:00.200+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:56.010 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:56.591 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:56.591 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1ju7Dy6WHAAQB4d9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16803/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16803/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:56.591 [print] {
"resourceType": "Condition",
"id": "16803",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:01.402+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:57:56.591 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:56.591 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:56.591 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1ju7Dy6WHAAQB4d9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16803/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16803/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:56.591 [print] {
"resourceType": "Condition",
"id": "16803",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:01.402+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:57:56.591 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:57.228 [print] {
"resourceType": "Condition",
"id": "16803",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:01.402+02:00",
"source": "#1ju7Dy6WHAAQB4d9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:58.113 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:58.693 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:02.912+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:02.912+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:57:58.693 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:59.649 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"600"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:59.649 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"uwRhd9w7dxxPKLnb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16804/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16804/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:59.649 [print] {
"resourceType": "Condition",
"id": "16804",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:04.435+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
> *
print COOKIES
11:57:59.649 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:59.649 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"600"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:59.649 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"uwRhd9w7dxxPKLnb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16804/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16804/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:59.649 [print] {
"resourceType": "Condition",
"id": "16804",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:04.435+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
> *
print COOKIES
11:57:59.649 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:00.266 [print] {
"resourceType": "Condition",
"id": "16804",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:04.435+02:00",
"source": "#uwRhd9w7dxxPKLnb",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "421060004",
"display": "Spine"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:00.868 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:01.506 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:05.678+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:05.678+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:01.506 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:02.160 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"612"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:02.160 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6gpmanyAOtkD1pgL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16805/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16805/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:02.160 [print] {
"resourceType": "Condition",
"id": "16805",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:06.962+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
> *
print COOKIES
11:58:02.160 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:02.160 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"612"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:02.160 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6gpmanyAOtkD1pgL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16805/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16805/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:02.160 [print] {
"resourceType": "Condition",
"id": "16805",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:06.962+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
> *
print COOKIES
11:58:02.160 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:05.066 [print] {
"resourceType": "Condition",
"id": "16805",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:06.962+02:00",
"source": "#6gpmanyAOtkD1pgL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:05.656 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:06.293 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:10.453+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:10.453+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:06.293 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:07.857 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"598"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:07.857 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IfgmwuHVUmwsNqWA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16806/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16806/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:07.857 [print] {
"resourceType": "Condition",
"id": "16806",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:12.668+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
> *
print COOKIES
11:58:07.857 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:07.857 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"598"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:07.857 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IfgmwuHVUmwsNqWA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16806/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16806/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:07.857 [print] {
"resourceType": "Condition",
"id": "16806",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:12.668+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
> *
print COOKIES
11:58:07.857 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:08.483 [print] {
"resourceType": "Condition",
"id": "16806",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:12.668+02:00",
"source": "#IfgmwuHVUmwsNqWA",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "89545001",
"display": "Face"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:09.052 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:09.678 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:13.859+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:13.859+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:09.694 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:10.339 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"599"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:10.339 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FbHEJE3o8Rw5iSIa"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16807/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16807/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:10.339 [print] {
"resourceType": "Condition",
"id": "16807",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:15.082+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
> *
print COOKIES
11:58:10.339 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:10.339 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"599"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:10.339 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FbHEJE3o8Rw5iSIa"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16807/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16807/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:10.339 [print] {
"resourceType": "Condition",
"id": "16807",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:15.082+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
> *
print COOKIES
11:58:10.339 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:10.909 [print] {
"resourceType": "Condition",
"id": "16807",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:15.082+02:00",
"source": "#FbHEJE3o8Rw5iSIa",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:11.533 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:12.123 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:16.342+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:16.342+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:12.123 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:12.741 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:12.741 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mNg7dFk5WtyVznX7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16808/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16808/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:12.741 [print] {
"resourceType": "Condition",
"id": "16808",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:17.556+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:58:12.741 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:12.757 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:12.757 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mNg7dFk5WtyVznX7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16808/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16808/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:12.757 [print] {
"resourceType": "Condition",
"id": "16808",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:17.556+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:58:12.757 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:13.350 [print] {
"resourceType": "Condition",
"id": "16808",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:17.556+02:00",
"source": "#mNg7dFk5WtyVznX7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:13.925 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:14.515 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:18.738+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:18.738+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:14.515 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:15.148 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:15.148 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mtDDPbiPyZGHuFtn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16809/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16809/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:15.148 [print] {
"resourceType": "Condition",
"id": "16809",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:19.958+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:58:15.148 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:15.148 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:15.148 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mtDDPbiPyZGHuFtn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16809/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16809/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:15.148 [print] {
"resourceType": "Condition",
"id": "16809",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:19.958+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:58:15.148 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:15.734 [print] {
"resourceType": "Condition",
"id": "16809",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:19.958+02:00",
"source": "#mtDDPbiPyZGHuFtn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:16.335 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:16.955 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:21.143+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:21.143+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:16.955 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:17.575 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:17.575 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"caigIP4FVpc0DXLL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16810/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16810/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:17.575 [print] {
"resourceType": "Condition",
"id": "16810",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:22.373+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:58:17.575 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:17.590 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:17.590 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"caigIP4FVpc0DXLL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16810/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16810/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:17.590 [print] {
"resourceType": "Condition",
"id": "16810",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:22.373+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:58:17.590 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:18.144 [print] {
"resourceType": "Condition",
"id": "16810",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:22.373+02:00",
"source": "#caigIP4FVpc0DXLL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:18.745 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:19.393 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:23.549+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:23.549+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:19.393 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:20.010 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:20.010 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OQBP61Y5ZZib8On7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16811/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16811/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:20.010 [print] {
"resourceType": "Condition",
"id": "16811",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:24.809+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:58:20.010 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:20.012 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:20.012 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OQBP61Y5ZZib8On7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16811/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16811/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:20.012 [print] {
"resourceType": "Condition",
"id": "16811",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:24.809+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:58:20.012 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:20.635 [print] {
"resourceType": "Condition",
"id": "16811",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:24.809+02:00",
"source": "#OQBP61Y5ZZib8On7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:21.484 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:22.329 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:26.291+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:26.291+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:22.329 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:22.892 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:22.892 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"92uStVrjibXafLCI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16812/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16812/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:22.892 [print] {
"resourceType": "Condition",
"id": "16812",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:27.704+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:58:22.892 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:22.892 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:22.892 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"92uStVrjibXafLCI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16812/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16812/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:22.892 [print] {
"resourceType": "Condition",
"id": "16812",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:27.704+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:58:22.892 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:23.511 [print] {
"resourceType": "Condition",
"id": "16812",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:27.704+02:00",
"source": "#92uStVrjibXafLCI",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:24.143 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:24.726 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:28.936+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:28.936+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:24.726 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:25.315 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:25.315 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bBUBujcs5Ry5TTgi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16813/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16813/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:25.315 [print] {
"resourceType": "Condition",
"id": "16813",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:30.120+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:58:25.315 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:25.315 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:25.315 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bBUBujcs5Ry5TTgi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16813/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16813/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:25.315 [print] {
"resourceType": "Condition",
"id": "16813",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:30.120+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
> *
print COOKIES
11:58:25.315 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:25.929 [print] {
"resourceType": "Condition",
"id": "16813",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:30.120+02:00",
"source": "#bBUBujcs5Ry5TTgi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "Gvhd-unk",
"display": "Gvhd Unknown"
}
]
}
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:26.542 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:27.118 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:31.351+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:31.351+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:27.119 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:27.747 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"718"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:27.747 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DqLccsTH4IVcTl5M"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16814/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16814/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:27.747 [print] {
"resourceType": "Condition",
"id": "16814",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:32.545+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:58:27.747 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:27.748 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"718"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:27.748 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DqLccsTH4IVcTl5M"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16814/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16814/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:27.748 [print] {
"resourceType": "Condition",
"id": "16814",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:32.545+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:58:27.748 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:28.314 [print] {
"resourceType": "Condition",
"id": "16814",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:32.545+02:00",
"source": "#DqLccsTH4IVcTl5M",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:28.947 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:29.517 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:33.741+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:33.741+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:29.517 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:30.113 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"730"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:30.113 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"alCX5Yga2kgJO8EI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16815/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16815/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:30.113 [print] {
"resourceType": "Condition",
"id": "16815",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:34.916+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:58:30.113 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:30.113 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"730"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:30.113 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"alCX5Yga2kgJO8EI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16815/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16815/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:30.113 [print] {
"resourceType": "Condition",
"id": "16815",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:34.916+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:58:30.113 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:30.683 [print] {
"resourceType": "Condition",
"id": "16815",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:34.916+02:00",
"source": "#alCX5Yga2kgJO8EI",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:31.305 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:31.883 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:36.111+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:36.111+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:31.883 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:32.558 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"739"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:32.558 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"F8sLMgBdMGuRI2ub"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16816/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16816/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:32.558 [print] {
"resourceType": "Condition",
"id": "16816",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:37.359+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:58:32.558 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:32.558 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"739"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:32.558 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"F8sLMgBdMGuRI2ub"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16816/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16816/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:32.558 [print] {
"resourceType": "Condition",
"id": "16816",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:37.359+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:58:32.558 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:33.182 [print] {
"resourceType": "Condition",
"id": "16816",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:37.359+02:00",
"source": "#F8sLMgBdMGuRI2ub",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:33.806 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:34.408 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:38.607+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:38.607+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:34.408 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:35.010 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"718"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:35.010 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fi8DKvP8tiODA5KQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16817/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16817/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:35.010 [print] {
"resourceType": "Condition",
"id": "16817",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:39.811+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:58:35.010 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:35.010 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"718"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:35.010 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fi8DKvP8tiODA5KQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16817/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16817/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:35.010 [print] {
"resourceType": "Condition",
"id": "16817",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:39.811+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:58:35.010 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:35.610 [print] {
"resourceType": "Condition",
"id": "16817",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:39.811+02:00",
"source": "#fi8DKvP8tiODA5KQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:36.188 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:36.778 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:40.997+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:40.997+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:36.778 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:37.357 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"738"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:37.357 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Z6pevfpUW6eN3glv"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16818/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16818/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:37.357 [print] {
"resourceType": "Condition",
"id": "16818",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:42.156+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:58:37.357 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:37.357 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"738"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:37.357 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Z6pevfpUW6eN3glv"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16818/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16818/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:37.357 [print] {
"resourceType": "Condition",
"id": "16818",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:42.156+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:58:37.357 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:37.923 [print] {
"resourceType": "Condition",
"id": "16818",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:42.156+02:00",
"source": "#Z6pevfpUW6eN3glv",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:38.511 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:39.095 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:43.320+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:43.320+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:39.111 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:39.727 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"726"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:39.727 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fYvqyfHzMdEA7zUS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16819/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16819/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:39.727 [print] {
"resourceType": "Condition",
"id": "16819",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:44.533+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:58:39.727 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:39.727 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"726"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:39.727 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fYvqyfHzMdEA7zUS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16819/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16819/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:39.727 [print] {
"resourceType": "Condition",
"id": "16819",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:44.533+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:58:39.727 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:40.364 [print] {
"resourceType": "Condition",
"id": "16819",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:44.533+02:00",
"source": "#fYvqyfHzMdEA7zUS",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "10200004",
"display": "Liver"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:40.974 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:41.775 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:45.774+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:45.774+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:41.775 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:42.414 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:42.414 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ocptsPDDo2iDLX97"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16820/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16820/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:42.414 [print] {
"resourceType": "Condition",
"id": "16820",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:47.205+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:58:42.414 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:42.414 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:42.414 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ocptsPDDo2iDLX97"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16820/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16820/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:42.414 [print] {
"resourceType": "Condition",
"id": "16820",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:47.205+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:58:42.414 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:43.047 [print] {
"resourceType": "Condition",
"id": "16820",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:47.205+02:00",
"source": "#ocptsPDDo2iDLX97",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "12738006",
"display": "Brain"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:43.664 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:44.297 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:48.469+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:48.469+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:44.297 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:44.899 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"730"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:44.899 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KUbq1LwbCA9wxDBg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16821/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16821/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:44.899 [print] {
"resourceType": "Condition",
"id": "16821",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:49.706+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:58:44.899 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:44.914 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"730"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:44.914 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KUbq1LwbCA9wxDBg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16821/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16821/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:44.914 [print] {
"resourceType": "Condition",
"id": "16821",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:49.706+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:58:44.914 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:45.473 [print] {
"resourceType": "Condition",
"id": "16821",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:49.706+02:00",
"source": "#KUbq1LwbCA9wxDBg",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:46.106 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:46.728 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:50.905+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:50.905+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:46.728 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:47.361 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"731"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:47.361 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"u4EHUFlNxU7DuiG8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16822/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16822/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:47.361 [print] {
"resourceType": "Condition",
"id": "16822",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:52.161+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:58:47.361 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:47.361 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"731"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:47.361 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"u4EHUFlNxU7DuiG8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16822/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16822/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:47.361 [print] {
"resourceType": "Condition",
"id": "16822",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:52.161+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:58:47.361 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:47.978 [print] {
"resourceType": "Condition",
"id": "16822",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:52.161+02:00",
"source": "#u4EHUFlNxU7DuiG8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "32849002",
"display": "Oesophagus"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:48.564 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:49.375 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:53.374+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:53.374+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:49.375 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:49.976 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"726"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:49.976 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9EwuCTxL0KQi4DjP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16823/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16823/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:49.976 [print] {
"resourceType": "Condition",
"id": "16823",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:54.770+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:58:49.976 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:49.976 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"726"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:49.976 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9EwuCTxL0KQi4DjP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16823/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16823/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:49.976 [print] {
"resourceType": "Condition",
"id": "16823",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:54.770+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:58:49.976 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:52.924 [print] {
"resourceType": "Condition",
"id": "16823",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:54.770+02:00",
"source": "#9EwuCTxL0KQi4DjP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:53.582 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:54.175 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:58:58.382+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:58:58.382+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:54.175 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:54.781 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"730"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:54.781 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aOMojBwH928Fe1A7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16824/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16824/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:54.781 [print] {
"resourceType": "Condition",
"id": "16824",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:59.588+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:58:54.781 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:54.781 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"730"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:54.781 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aOMojBwH928Fe1A7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16824/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:58:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16824/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:58:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:54.781 [print] {
"resourceType": "Condition",
"id": "16824",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:59.588+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:58:54.781 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:55.361 [print] {
"resourceType": "Condition",
"id": "16824",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:58:59.588+02:00",
"source": "#aOMojBwH928Fe1A7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "2748008",
"display": "Spinal Cord"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:55.946 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:56.533 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:00.752+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:00.752+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:58:56.533 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:58.235 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"739"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:58.235 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SuujOitIAQIEPrNM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16825/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16825/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:58.235 [print] {
"resourceType": "Condition",
"id": "16825",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:03.036+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:58:58.235 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:58.235 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"739"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:58.235 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SuujOitIAQIEPrNM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16825/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16825/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:58.235 [print] {
"resourceType": "Condition",
"id": "16825",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:03.036+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:58:58.235 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:58.855 [print] {
"resourceType": "Condition",
"id": "16825",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:03.036+02:00",
"source": "#SuujOitIAQIEPrNM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"bodySite": [
{
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-affected-organ-eu-pcsp",
"code": "51185008",
"display": "Thoracic structure"
}
],
"text": "Left Ear"
}
],
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:59.712 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:00.346 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:04.515+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:04.515+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:00.346 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:00.994 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"602"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:00.994 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GZWPV5a394O2lFtf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16826/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16826/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:00.994 [print] {
"resourceType": "Condition",
"id": "16826",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:05.777+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:59:00.994 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:00.994 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"602"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:00.994 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GZWPV5a394O2lFtf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16826/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16826/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:00.994 [print] {
"resourceType": "Condition",
"id": "16826",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:05.777+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:59:00.994 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:01.574 [print] {
"resourceType": "Condition",
"id": "16826",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:05.777+02:00",
"source": "#GZWPV5a394O2lFtf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2012-10-31",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:02.483 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:03.059 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:07.280+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:07.280+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:03.060 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:03.693 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"614"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:03.693 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bPo9qtvrLjskLFIR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16827/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16827/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:03.693 [print] {
"resourceType": "Condition",
"id": "16827",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:08.488+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:59:03.693 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:03.694 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"614"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:03.694 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bPo9qtvrLjskLFIR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16827/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16827/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:03.694 [print] {
"resourceType": "Condition",
"id": "16827",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:08.488+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
> *
print COOKIES
11:59:03.694 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:04.684 [print] {
"resourceType": "Condition",
"id": "16827",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:08.488+02:00",
"source": "#bPo9qtvrLjskLFIR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-01-21",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-1",
"display": "Limitado"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:05.287 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:05.910 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:10.083+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:10.083+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:05.912 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:06.494 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"615"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:06.494 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bMrX5uGt40w2qhYe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16828/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16828/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:06.494 [print] {
"resourceType": "Condition",
"id": "16828",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:11.287+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:59:06.494 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:06.494 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"615"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:06.494 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bMrX5uGt40w2qhYe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16828/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16828/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:06.494 [print] {
"resourceType": "Condition",
"id": "16828",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:11.287+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
> *
print COOKIES
11:59:06.494 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:07.064 [print] {
"resourceType": "Condition",
"id": "16828",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:11.287+02:00",
"source": "#bMrX5uGt40w2qhYe",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355004",
"display": "Chronic graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-04-08",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-chronic-grade-eu-pcsp",
"code": "Gvhd-chr-2",
"display": "Extensivo"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:07.670 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:08.293 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:12.473+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:12.473+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:08.293 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:08.877 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:08.877 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mQM6oS5CHIJAEY3F"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16829/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16829/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:08.877 [print] {
"resourceType": "Condition",
"id": "16829",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:13.673+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:59:08.877 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:08.877 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:08.877 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mQM6oS5CHIJAEY3F"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16829/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16829/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:08.877 [print] {
"resourceType": "Condition",
"id": "16829",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:13.673+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:59:08.877 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:10.491 [print] {
"resourceType": "Condition",
"id": "16829",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:13.673+02:00",
"source": "#mQM6oS5CHIJAEY3F",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:11.076 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:11.678 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:15.874+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:15.874+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:11.678 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:12.264 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:12.264 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IwLlDzhIoRKgRAW2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16830/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16830/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:12.264 [print] {
"resourceType": "Condition",
"id": "16830",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:17.067+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:59:12.264 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:12.264 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:12.264 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IwLlDzhIoRKgRAW2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16830/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16830/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:12.264 [print] {
"resourceType": "Condition",
"id": "16830",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:17.067+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:59:12.264 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:12.850 [print] {
"resourceType": "Condition",
"id": "16830",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:17.067+02:00",
"source": "#IwLlDzhIoRKgRAW2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:14.435 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:15.024 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:19.229+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:19.229+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:15.025 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:15.593 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:15.593 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7WkWmZkQXJV7aeOy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16831/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16831/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:15.593 [print] {
"resourceType": "Condition",
"id": "16831",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:20.391+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:59:15.593 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:15.594 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:15.594 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7WkWmZkQXJV7aeOy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16831/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16831/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:15.594 [print] {
"resourceType": "Condition",
"id": "16831",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:20.391+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:59:15.594 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:16.422 [print] {
"resourceType": "Condition",
"id": "16831",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:20.391+02:00",
"source": "#7WkWmZkQXJV7aeOy",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:17.049 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:17.695 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:21.835+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:21.835+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:17.695 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:18.317 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:18.317 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"l7rtZ0reHOGJ3cx8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16832/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16832/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:18.317 [print] {
"resourceType": "Condition",
"id": "16832",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:23.116+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:59:18.317 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:18.318 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:18.318 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"l7rtZ0reHOGJ3cx8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16832/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16832/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:18.318 [print] {
"resourceType": "Condition",
"id": "16832",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:23.116+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:59:18.318 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:19.889 [print] {
"resourceType": "Condition",
"id": "16832",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:23.116+02:00",
"source": "#l7rtZ0reHOGJ3cx8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:20.522 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:21.101 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:25.323+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:25.323+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:21.101 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:21.789 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:21.789 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"03Hzur20cwhOdaT4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16833/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16833/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:21.789 [print] {
"resourceType": "Condition",
"id": "16833",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:26.553+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:59:21.789 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:21.790 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:21.790 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"03Hzur20cwhOdaT4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16833/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16833/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:21.790 [print] {
"resourceType": "Condition",
"id": "16833",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:26.553+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:59:21.790 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:22.459 [print] {
"resourceType": "Condition",
"id": "16833",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:26.553+02:00",
"source": "#03Hzur20cwhOdaT4",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:23.064 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 10ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 10ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:23.675 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:27.864+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:27.864+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:23.676 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:24.268 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:24.268 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pBkGvIWpBMEFLmmb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16834/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16834/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:24.268 [print] {
"resourceType": "Condition",
"id": "16834",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:29.062+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:59:24.268 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:24.269 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:24.269 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pBkGvIWpBMEFLmmb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16834/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16834/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:24.269 [print] {
"resourceType": "Condition",
"id": "16834",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:29.062+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:59:24.269 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:25.310 [print] {
"resourceType": "Condition",
"id": "16834",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:29.062+02:00",
"source": "#pBkGvIWpBMEFLmmb",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:25.891 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:26.467 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:30.691+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:30.691+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:26.468 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:27.081 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:27.081 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6kWGl8zeptN38sD4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16835/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16835/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:27.081 [print] {
"resourceType": "Condition",
"id": "16835",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:31.866+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:59:27.081 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:27.082 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:27.082 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6kWGl8zeptN38sD4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16835/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16835/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:27.082 [print] {
"resourceType": "Condition",
"id": "16835",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:31.866+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:59:27.082 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:27.682 [print] {
"resourceType": "Condition",
"id": "16835",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:31.866+02:00",
"source": "#6kWGl8zeptN38sD4",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:28.498 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:29.493 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:33.285+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:33.285+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:29.494 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:30.097 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:30.097 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"16Iw66VVaUvqhJLh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16836/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16836/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:30.097 [print] {
"resourceType": "Condition",
"id": "16836",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:34.891+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:59:30.097 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:30.099 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:30.099 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"16Iw66VVaUvqhJLh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16836/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16836/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:30.099 [print] {
"resourceType": "Condition",
"id": "16836",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:34.891+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:59:30.099 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:30.704 [print] {
"resourceType": "Condition",
"id": "16836",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:34.891+02:00",
"source": "#16Iw66VVaUvqhJLh",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:31.335 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:31.952 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:36.131+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:36.131+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:31.952 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:32.609 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:32.609 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yuujSK3IBwzo0YSJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16837/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16837/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:32.609 [print] {
"resourceType": "Condition",
"id": "16837",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:37.395+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:59:32.609 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:32.612 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:32.612 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yuujSK3IBwzo0YSJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16837/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16837/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:32.612 [print] {
"resourceType": "Condition",
"id": "16837",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:37.395+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:59:32.612 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:33.222 [print] {
"resourceType": "Condition",
"id": "16837",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:37.395+02:00",
"source": "#yuujSK3IBwzo0YSJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:33.839 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:34.444 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:38.626+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:38.626+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:34.445 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:35.035 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:35.035 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IfcfVUay1lEaRSkY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16838/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16838/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:35.036 [print] {
"resourceType": "Condition",
"id": "16838",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:39.825+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:59:35.036 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:35.037 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:35.037 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IfcfVUay1lEaRSkY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16838/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16838/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:35.037 [print] {
"resourceType": "Condition",
"id": "16838",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:39.825+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:59:35.037 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:35.643 [print] {
"resourceType": "Condition",
"id": "16838",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:39.825+02:00",
"source": "#IfcfVUay1lEaRSkY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:36.220 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:36.834 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:41.019+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:41.019+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:36.834 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:37.435 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:37.435 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ytAZq6iManQqAySV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16839/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16839/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:37.435 [print] {
"resourceType": "Condition",
"id": "16839",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:42.240+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:59:37.435 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:37.435 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:37.435 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ytAZq6iManQqAySV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16839/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16839/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:37.435 [print] {
"resourceType": "Condition",
"id": "16839",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:42.240+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:59:37.435 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:38.386 [print] {
"resourceType": "Condition",
"id": "16839",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:42.240+02:00",
"source": "#ytAZq6iManQqAySV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:39.225 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:39.962 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:44.027+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:44.027+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:39.962 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:40.584 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:40.584 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jIRkZvbNAEFYrrWZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16840/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16840/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:40.584 [print] {
"resourceType": "Condition",
"id": "16840",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:45.381+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:59:40.584 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:40.585 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:40.585 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jIRkZvbNAEFYrrWZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16840/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16840/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:40.585 [print] {
"resourceType": "Condition",
"id": "16840",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:45.381+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:59:40.585 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:42.360 [print] {
"resourceType": "Condition",
"id": "16840",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:45.381+02:00",
"source": "#jIRkZvbNAEFYrrWZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:42.979 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:43.836 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:47.778+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:47.778+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:43.836 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:45.426 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:45.426 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iokuJ4P1RJRxGX9A"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16841/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16841/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:45.426 [print] {
"resourceType": "Condition",
"id": "16841",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:50.222+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:59:45.426 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:45.429 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:45.429 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iokuJ4P1RJRxGX9A"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16841/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16841/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:45.429 [print] {
"resourceType": "Condition",
"id": "16841",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:50.222+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:59:45.429 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:45.981 [print] {
"resourceType": "Condition",
"id": "16841",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:50.222+02:00",
"source": "#iokuJ4P1RJRxGX9A",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:46.879 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:47.461 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:51.681+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:51.681+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:47.461 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:48.061 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:48.061 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wI5y86dCfwc5Oxua"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16842/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16842/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:48.061 [print] {
"resourceType": "Condition",
"id": "16842",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:52.862+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:59:48.061 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:48.061 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:48.061 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wI5y86dCfwc5Oxua"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16842/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16842/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:48.061 [print] {
"resourceType": "Condition",
"id": "16842",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:52.862+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
11:59:48.061 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:48.672 [print] {
"resourceType": "Condition",
"id": "16842",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:52.862+02:00",
"source": "#wI5y86dCfwc5Oxua",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:49.342 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:49.977 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:54.139+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:54.139+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:49.977 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:50.549 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:50.549 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LRXOQnV5vBzi3MuH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16843/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16843/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:50.549 [print] {
"resourceType": "Condition",
"id": "16843",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:55.361+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:59:50.549 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:50.549 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:50.549 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LRXOQnV5vBzi3MuH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16843/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16843/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:50.549 [print] {
"resourceType": "Condition",
"id": "16843",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:55.361+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
11:59:50.549 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:51.118 [print] {
"resourceType": "Condition",
"id": "16843",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:55.361+02:00",
"source": "#LRXOQnV5vBzi3MuH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:51.739 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:52.347 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:56.540+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:56.540+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:52.347 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:52.995 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:52.995 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"c5BjaPmxUordYGto"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16844/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16844/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:52.995 [print] {
"resourceType": "Condition",
"id": "16844",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:57.788+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:59:52.995 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:52.995 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:52.995 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"c5BjaPmxUordYGto"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16844/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:59:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16844/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:59:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:52.995 [print] {
"resourceType": "Condition",
"id": "16844",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:57.788+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
11:59:52.995 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:53.993 [print] {
"resourceType": "Condition",
"id": "16844",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:59:57.788+02:00",
"source": "#c5BjaPmxUordYGto",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:54.636 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:55.263 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:59:59.434+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:59:59.434+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:55.263 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:55.878 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:55.878 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"etJRSbQHfLfXW14H"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16845/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16845/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:55.878 [print] {
"resourceType": "Condition",
"id": "16845",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:00.651+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:59:55.879 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:55.880 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:55.880 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"etJRSbQHfLfXW14H"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16845/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16845/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:55.880 [print] {
"resourceType": "Condition",
"id": "16845",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:00.651+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
11:59:55.880 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:56.495 [print] {
"resourceType": "Condition",
"id": "16845",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:00.651+02:00",
"source": "#etJRSbQHfLfXW14H",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:57.460 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:58.103 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:02.256+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:02.256+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
11:59:58.103 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:58.947 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:58.947 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KIqF8x5M2nlsl5bd"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16846/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16846/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:58.947 [print] {
"resourceType": "Condition",
"id": "16846",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:03.742+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:59:58.947 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:58.948 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:58.948 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KIqF8x5M2nlsl5bd"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16846/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16846/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:58.948 [print] {
"resourceType": "Condition",
"id": "16846",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:03.742+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
11:59:58.948 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:59.531 [print] {
"resourceType": "Condition",
"id": "16846",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:03.742+02:00",
"source": "#KIqF8x5M2nlsl5bd",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:00.127 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:00.924 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:04.918+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:04.918+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:00.929 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:01.524 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:01.525 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kzREO2tcTMpuyd8B"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16847/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16847/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:01.525 [print] {
"resourceType": "Condition",
"id": "16847",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:06.316+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
12:00:01.525 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:01.526 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:01.526 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kzREO2tcTMpuyd8B"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16847/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16847/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:01.526 [print] {
"resourceType": "Condition",
"id": "16847",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:06.316+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
12:00:01.526 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:02.120 [print] {
"resourceType": "Condition",
"id": "16847",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:06.316+02:00",
"source": "#kzREO2tcTMpuyd8B",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:02.729 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:03.650 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:07.533+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:07.533+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:03.651 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:04.239 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:04.239 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"eO8P04KTbQVgMOIi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16848/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16848/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:04.239 [print] {
"resourceType": "Condition",
"id": "16848",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:09.017+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
12:00:04.239 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:04.239 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:04.239 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"eO8P04KTbQVgMOIi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16848/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16848/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:04.239 [print] {
"resourceType": "Condition",
"id": "16848",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:09.017+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
12:00:04.239 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:04.951 [print] {
"resourceType": "Condition",
"id": "16848",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:09.017+02:00",
"source": "#eO8P04KTbQVgMOIi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:05.555 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:06.185 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:10.337+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:10.337+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:06.185 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:06.805 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:06.805 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VRQVdlhcgBdPSBo4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16849/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16849/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:06.805 [print] {
"resourceType": "Condition",
"id": "16849",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:11.591+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
12:00:06.805 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:06.806 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:06.806 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VRQVdlhcgBdPSBo4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16849/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16849/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:06.806 [print] {
"resourceType": "Condition",
"id": "16849",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:11.591+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
12:00:06.807 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:07.407 [print] {
"resourceType": "Condition",
"id": "16849",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:11.591+02:00",
"source": "#VRQVdlhcgBdPSBo4",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:08.054 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 17ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 17ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:08.666 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:12.842+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:12.842+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:08.667 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:09.275 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:09.275 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Uj0sPJOP8FkRGUmM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16850/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16850/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:09.275 [print] {
"resourceType": "Condition",
"id": "16850",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:14.056+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
12:00:09.275 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:09.275 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:09.275 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Uj0sPJOP8FkRGUmM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16850/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16850/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:09.275 [print] {
"resourceType": "Condition",
"id": "16850",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:14.056+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
12:00:09.275 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:09.878 [print] {
"resourceType": "Condition",
"id": "16850",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:14.056+02:00",
"source": "#Uj0sPJOP8FkRGUmM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:10.517 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:11.077 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:15.315+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:15.315+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:11.084 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:11.702 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:11.702 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QTiEYDaUwUIgQJXA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16851/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16851/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:11.702 [print] {
"resourceType": "Condition",
"id": "16851",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:16.501+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
12:00:11.702 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:11.702 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:11.702 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QTiEYDaUwUIgQJXA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16851/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16851/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:11.702 [print] {
"resourceType": "Condition",
"id": "16851",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:16.501+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
12:00:11.702 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:12.329 [print] {
"resourceType": "Condition",
"id": "16851",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:16.501+02:00",
"source": "#QTiEYDaUwUIgQJXA",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:12.985 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:13.557 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:17.777+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:17.777+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:13.557 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:14.145 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:14.145 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7AcQfEptXSdmD92U"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16852/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16852/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:14.145 [print] {
"resourceType": "Condition",
"id": "16852",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:18.938+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
12:00:14.145 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:14.145 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:14.145 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7AcQfEptXSdmD92U"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16852/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16852/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:14.145 [print] {
"resourceType": "Condition",
"id": "16852",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:18.938+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
12:00:14.145 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:14.739 [print] {
"resourceType": "Condition",
"id": "16852",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:18.938+02:00",
"source": "#7AcQfEptXSdmD92U",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:15.346 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:16.045 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:20.144+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:20.144+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:16.045 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:16.687 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:16.687 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3iijBEGte3spSgtV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16853/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16853/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:16.687 [print] {
"resourceType": "Condition",
"id": "16853",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:21.486+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
12:00:16.687 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:16.687 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:16.687 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3iijBEGte3spSgtV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16853/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16853/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:16.687 [print] {
"resourceType": "Condition",
"id": "16853",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:21.486+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
12:00:16.687 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:17.304 [print] {
"resourceType": "Condition",
"id": "16853",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:21.486+02:00",
"source": "#3iijBEGte3spSgtV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:17.890 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:18.468 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:22.692+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:22.692+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:18.469 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:19.097 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:19.097 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IImUPjqSINbTOfcH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16854/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16854/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:19.097 [print] {
"resourceType": "Condition",
"id": "16854",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:23.890+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
12:00:19.097 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:19.098 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:19.098 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IImUPjqSINbTOfcH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16854/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16854/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:19.098 [print] {
"resourceType": "Condition",
"id": "16854",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:23.890+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
12:00:19.098 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:20.095 [print] {
"resourceType": "Condition",
"id": "16854",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:23.890+02:00",
"source": "#IImUPjqSINbTOfcH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:20.716 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:21.296 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:25.523+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:25.523+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:21.296 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:22.008 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:22.008 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2Yx8wBvdpX4i3yNb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16855/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16855/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:22.008 [print] {
"resourceType": "Condition",
"id": "16855",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:26.793+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
12:00:22.008 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:22.008 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:22.008 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2Yx8wBvdpX4i3yNb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16855/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16855/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:22.008 [print] {
"resourceType": "Condition",
"id": "16855",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:26.793+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
12:00:22.008 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:22.625 [print] {
"resourceType": "Condition",
"id": "16855",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:26.793+02:00",
"source": "#2Yx8wBvdpX4i3yNb",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:23.257 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:23.890 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:28.054+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:28.054+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:23.891 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:24.509 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:24.509 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HVpdJWxl9OWg7TyF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16856/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16856/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:24.509 [print] {
"resourceType": "Condition",
"id": "16856",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:29.311+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
12:00:24.509 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:24.515 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:24.515 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HVpdJWxl9OWg7TyF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16856/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16856/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:24.515 [print] {
"resourceType": "Condition",
"id": "16856",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:29.311+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
12:00:24.515 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:25.279 [print] {
"resourceType": "Condition",
"id": "16856",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:29.311+02:00",
"source": "#HVpdJWxl9OWg7TyF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:25.915 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:26.488 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:30.708+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:30.708+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:26.504 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:27.128 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:27.128 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1GvMwDp6c929Usp3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16857/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16857/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:27.128 [print] {
"resourceType": "Condition",
"id": "16857",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:31.937+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
12:00:27.128 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:27.128 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:27.128 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1GvMwDp6c929Usp3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16857/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16857/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:27.128 [print] {
"resourceType": "Condition",
"id": "16857",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:31.937+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
12:00:27.128 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:27.760 [print] {
"resourceType": "Condition",
"id": "16857",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:31.937+02:00",
"source": "#1GvMwDp6c929Usp3",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:28.345 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:30.474 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:33.141+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:33.141+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:30.474 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:31.106 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:31.106 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4PIcpasn0KnFLNbO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16858/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16858/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:31.106 [print] {
"resourceType": "Condition",
"id": "16858",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:35.899+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
12:00:31.106 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:31.106 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"544"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:31.106 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4PIcpasn0KnFLNbO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16858/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16858/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:31.106 [print] {
"resourceType": "Condition",
"id": "16858",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:35.899+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
> *
print COOKIES
12:00:31.106 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:31.711 [print] {
"resourceType": "Condition",
"id": "16858",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:35.899+02:00",
"source": "#4PIcpasn0KnFLNbO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Desconocido"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:32.313 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:32.945 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:37.101+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:37.101+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:32.945 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:33.534 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:33.534 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FFpdOS6AoHXZfFDW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16859/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16859/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:33.534 [print] {
"resourceType": "Condition",
"id": "16859",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:38.331+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
12:00:33.534 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:33.534 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:33.534 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FFpdOS6AoHXZfFDW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16859/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16859/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:33.534 [print] {
"resourceType": "Condition",
"id": "16859",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:38.331+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
> *
print COOKIES
12:00:33.534 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:34.101 [print] {
"resourceType": "Condition",
"id": "16859",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:38.331+02:00",
"source": "#FFpdOS6AoHXZfFDW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-06-27",
"end": "2014-07-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-1",
"display": "Grado 1"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:34.774 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:35.376 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:39.581+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:39.581+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:35.376 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:36.217 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:36.217 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZnOC4X1FoBugD1kB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16860/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16860/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:36.217 [print] {
"resourceType": "Condition",
"id": "16860",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:41.019+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
12:00:36.217 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:36.217 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:36.217 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZnOC4X1FoBugD1kB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16860/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16860/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:36.217 [print] {
"resourceType": "Condition",
"id": "16860",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:41.019+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
> *
print COOKIES
12:00:36.217 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:36.876 [print] {
"resourceType": "Condition",
"id": "16860",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:41.019+02:00",
"source": "#ZnOC4X1FoBugD1kB",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2013-12-04",
"end": "2014-04-28"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-2",
"display": "Grado 2"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:37.461 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:38.144 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:42.255+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:42.255+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:38.144 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:40.728 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:40.728 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vSDBvW0Hbw5T1lv1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16861/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16861/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:40.728 [print] {
"resourceType": "Condition",
"id": "16861",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:45.526+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
12:00:40.728 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:40.728 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:40.728 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vSDBvW0Hbw5T1lv1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16861/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16861/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:40.728 [print] {
"resourceType": "Condition",
"id": "16861",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:45.526+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
> *
print COOKIES
12:00:40.728 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:41.348 [print] {
"resourceType": "Condition",
"id": "16861",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:45.526+02:00",
"source": "#vSDBvW0Hbw5T1lv1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-01-22",
"end": "2014-06-27"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-3",
"display": "Grado 3"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:42.057 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:42.681 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:46.857+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:46.857+02:00"
}
]
}
@Delete
@Condition
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Condition resource.
Given
path '/Condition'
And
print resource
12:00:42.682 [print] {
"resourceType": "Condition",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
],
"security": [
{
"system": "http://hl7.org/fhir/ValueSet/security-labels",
"code": "SYSDEV"
}
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"stage": {
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
}
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:43.291 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:43.291 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IB79NSLdS1KhEvRV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16862/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16862/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:43.291 [print] {
"resourceType": "Condition",
"id": "16862",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:48.091+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
12:00:43.291 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:43.291 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"611"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:43.291 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IB79NSLdS1KhEvRV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16862/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 10:00:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Condition/16862/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 10:00:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:43.291 [print] {
"resourceType": "Condition",
"id": "16862",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:48.091+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
> *
print COOKIES
12:00:43.291 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:43.876 [print] {
"resourceType": "Condition",
"id": "16862",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T12:00:48.091+02:00",
"source": "#IB79NSLdS1KhEvRV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Condition-gvhd-eu-pcsp"
]
},
"language": "ES",
"code": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-type-eu-pcsp",
"code": "402355000",
"display": "Acute graft-versus-host disease"
}
]
},
"onsetPeriod": {
"start": "2014-02-17",
"end": "2014-07-03"
},
"stage": [
{
"summary": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/ValueSet/vs-Gvhd-acute-grade-eu-pcsp",
"code": "Gvhd-acute-4",
"display": "Grado 4"
}
]
}
}
]
}
When
print 'They try to delete the Condition resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:44.459 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Condition resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:45.091 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T12:00:49.269+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T12:00:49.269+02:00"
}
]
}